This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS1224: Changing CAN ID for different Messages (HalCoGen + DCAN setup)

Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN

Hi,

I am using a TMS570LS1224 XL2 Board.

The TI Example had no CAN interface, so I added it using HALCoGen to have a working sample for transmitting messages.

(https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1210887/halcogen-user-guideline-for-pinmux-at-halcogen-to-get-pinmux-working)

It is sending out Messages with ID 0x001. But I dont get the Idea of changing the CAN-ID for transmitting different Messages.

When I change the ID for example to 0x458 the CAN Anylyzer sees ID 0x000h and also the Message is empty/corrupt and the Cycletime repeats not with 1sek. It repetas a 000 message with 70ms.

I found a hint , at the C2000 forum using a ID Message Update function.

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1082146/tms320f280025c-send-different-can-messages-with-only-id-change

Therefore found "CanUpdateID()" at the CAN.c library.

But usind this function destroys someting. The message is empty and the CAN-ID is not 001 anymore, it is 000h

without canUpdateID()

The Cycletime is ~1sek as expected and the Message is there:

(CAN-ID 000h is not transmitted in this example code, it was only stored from the PCAN-View CAN montitoring software)

Any funter Ideas how to send Messages with different CAN-IDs?

Many thanks and regards.