Have activated RX fifo 0 message notifier in CAN initialization as follows:
1 2 3 4 5 |
/* Activate Rx FIFO 0 new message notification on both FDCAN instances */ if (HAL_FDCAN_ActivateNotification(CAN_HANDLE, FDCAN_IT_RX_FIFO0_NEW_MESSAGE, 0) != HAL_OK) { Error_Handler(); } |
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.