Other Parts Discussed in Thread: ADS114S08EVM,
Tool/software: TI-RTOS
I have a Tiva TM4C1294 processor that is collecting Analog data from a ADS114S08EVM board. The data is put into a CAN message and sent to a Sitara AM5728. On the Sitara processor, I am using a slightly modified version of the TI example dcanLoopback code found in the Sitara pdk installation folder. Every message from the A/D has the correct value. No messages are lost. However the msgLostFlag in the dcanMsgParams_t structure is always being set for each message received by the interrupt service routine. What could the underlying meaning of the flag being set be? What other condition could case the flag to be set? I don't want to just ignore the flag. If I send the A/D data to a PCAN serial port on a PC, the PCAN software on the PC does not show any error.
From dcan.h
typedef struct dcanMsgParams {
uint32_t dataLength; // Message object data length - Valid values: 1 to 8
uint32_t msgLostFlag; // At the reception of a Message, Message is received or lost Valid only for RX - Valid values: TRUE or FALSE
uint32_t rxIdType; // Extended IDE Type : Standard / Extended Identifier. Valid only for Rx For valid values refer enum # dcanXidType_t
uint32_t rxMsgIdentifier; // Message Identifier - [28:0] are valid bits. Valid only for Rx [28:18]: Standard Identifier , [17:0]: Extended Identifier
uint32_t rxFrameType; // Received Frame is Data Frame / Remote Frame. Valid only for Rx For valid values refer enum # dcanFrameType_t
uint8_t msgData[DCAN_MAX_MSG_LENGTH]; // Data Value to be transmitted
} dcanMsgParams_t;