Hi Expert,
The first CAN message received after MCU power-up is always empty.
RTD version:
Hi Petr,
I can't share the simple project with you, but here is the FlexCAN configuration.
The test environment is as follows: the MCU's CAN_H is connected to the PCAN's CAN_H, and CAN_L is connected to CAN_L.
A CAN message is sent via PCAN Viewer right after the MCU powers up. Then we check whether the message is received.
Could this be an RX FIFO configuration issue?
Thanks.
Hi,
a FlexCAN config does not show RXFIFO is enabled so why FlexCAN_Ip_RxFifo is called then?
For the first message do you see callback is called and rxbuffer is empty/wrong or callback is not called at all?
Did you do any measurement to be sure all init is done before message came? Do you see any kind of error detected?
BR, Petr
Hi,
I am not aware of situation which can lead to behavior you wrote.
Are you able to share full simplified project for testing and specify the bus condition and behavior for the issue (message send from other node, rxbuffer content after receiving, etc)?
Your code includes RXFIFO_receive calling. How the RXFIFO is used/configured?
BR, Petr