CAN messages silently dropped by controller
Posted: Mon 31. Mar 2025, 17:30
Hello everyone,
I'm encountering an issue with a custom firmware for the PCAN-MicroMod FD. Occasionally, some CAN messages are not being sent on the CAN bus, despite no error frames being present.
The CAN bus configuration is as follows: ISO CAN FD, 80MHz, Nominal 500kbps, Data 2Mbps. The bitrate settings remain unchanged from the example code.
The firmware is based on the provided examples, with SingleShot explicitly disabled during CAN initialization.
The software queue does not fill up, as the CAN_Write function consistently returns CAN_ERR_OK (I verified this by checking the return value to trigger an LED, which remains off).
I have increased the CAN1_TX_QUEUE_SIZE to 45, but I expect all queued messages to eventually be sent on the bus.
Any suggestions on where to investigate this issue would be greatly appreciated.
Thank you!
I'm encountering an issue with a custom firmware for the PCAN-MicroMod FD. Occasionally, some CAN messages are not being sent on the CAN bus, despite no error frames being present.
The CAN bus configuration is as follows: ISO CAN FD, 80MHz, Nominal 500kbps, Data 2Mbps. The bitrate settings remain unchanged from the example code.
The firmware is based on the provided examples, with SingleShot explicitly disabled during CAN initialization.
The software queue does not fill up, as the CAN_Write function consistently returns CAN_ERR_OK (I verified this by checking the return value to trigger an LED, which remains off).
I have increased the CAN1_TX_QUEUE_SIZE to 45, but I expect all queued messages to eventually be sent on the bus.
Any suggestions on where to investigate this issue would be greatly appreciated.
Thank you!