I am having issues reading the ACTUAL message ID of a received CAN message.
I am using the DCAN module and can successfully initialize and configure the CAN subsystem to receive and transmit CAN frames. I have verified this with a third party CAN sniffer.
However, upon receiving a CAN frame, I cannot read the actual message ID of the received CAN frames. I have modified the DCAN driver to grab the message ID from the IFARB register in this source file:
C:\ti\mmwave_sdk_01_00_00_05\packages\ti\drivers\can\src\dcan.c
The modification to the driver successfully reads the message ID, but it's the same message ID I configured the message object with. No matter what mask or ID bits I change for this message box, the ID I read from received frame is simply the message ID the CAN message object is configured for. It does not provide the message ID of the received frame. I would like to access the actual message ID from the received frame, not from the message object configuration.
Is there a way to access the CAN message ID of a received CAN frame using the DCAN module?
Thanks,
Erik