开源分享 · 2023年12月30日

STM32 CAN总线使能 FDCAN_IT_RX_FIFO0_NEW_MESSAGE 通知但接收回调不工作问题

Have activated RX fifo 0 message notifier in CAN initialization as follows:

But HAL_FDCAN_RxFifo0Callback never called.

In my case, I use cubeMx to generate initialize code,  In CAN parameters setting,  set Std Filters Nbr and Ext Filters Nbr to match or bigger than your actual filter count. 

I set them to 0, so the callback never triggered.