AnsweredAssumed Answered

STM32 HAL CAN RX

Question asked by farrelly.dan on Mar 2, 2016
Latest reply on Mar 14, 2016 by farrelly.dan
Hello

I am having trouble with the CAN_RX_MSG structure.  As the struct contains both StdId and ExtId fields I have seen incorrect data being received in my ISR when both fields are populated.

if     (CAN_RX_MSG.Ext_Id == 0x11111111)     { //gather CAN data }

The above statement can evaluate as true when the CAN_RX_MSG structure contains a Std_Id message and its data and leads to the Std_Id data being populated into the program incorrectly.

Can anyone advise as to how I can avoid this issue?  Is the IDE parameter required?

Advice is much appreciated.

Thanks

Dan

Outcomes