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.
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.
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.