Issue with XCP on CAN (F2838x – Simulink External Mode)

조회 수: 23 (최근 30일)
Ahmet
Ahmet 2025년 9월 30일 8:31
댓글: Ahmet 2025년 10월 1일 6:32
Dear MathWorks Team,
I am currently programming a TI F2838x processor using Simulink. For External Mode, I am using XCP on CAN and have selected the CAN-A module.
However, CAN-A is not solely used for XCP communication — I also use it for standard CAN communication with different message IDs. XCP works as expected, and I can monitor variable values via the A2L file without any issues. That said, I have encountered an intermittent issue on the CAN bus: occasionally (approximately every 2 hours), a message appears with the same CAN ID as one of my existing fixed-length (8-byte) messages, but with a different data length.
This behavior should not occur under normal circumstances. I have reviewed my XCP configuration and everything appears to be correctly set up. Additionally, I have ensured that no mailbox number conflicts exist between the XCP configuration and my other CAN messages.
I would appreciate any insights or suggestions as to what might be causing this unexpected behavior. Has anyone encountered a similar issue, or is there any known limitation or configuration detail that I might be overlooking?
Thank you in advance for your support.
  댓글 수: 2
Walter Roberson
Walter Roberson 대략 4시간 전
The messages with the different data length: is it a consistent different data length, or is it a random size?
If it is a random size, I would speculate that somehow multiple messages are getting merged together.
Ahmet
Ahmet 대략 1시간 전
Hello Walter,
The message length and the CAN ID copied from the CAN messages vary. These values are not always the same.

댓글을 달려면 로그인하십시오.

답변 (0개)

제품


릴리스

R2025a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by