Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
I've worked with CCS v.10.1.0.00010, HALCoGen v.04.07.01 and Hercules HDK tms570ls3137 development board. The board should receive messages in CAN1 module. After receiving the first identifier, dlc and data are retrieved as follows:
rx_identifier = can_get_ext_ID(channel, canMESSAGE_BOX1);
rx_dlc = can_get_dlc(channel, canMESSAGE_BOX1);
canGetData(channel, canMESSAGE_BOX1, rx_data);
Transmit can message from PC side
rx_identifier and rx_data are correct, but dlc is wrong and have default value as it was configured.
When next message read. dlc equals of dlc previous value.
This function that read dlc
Why do all incoming messages overwrite the previous ones before they are read, and in the case of DLC the value is read before a new one is written?