2023-08-27 11:05 PM
Hello,
I work with STM32G484, with FDCAN. I want to create filter so only messages with my own CAN_ID will reach HAL_FDCAN_RxFifo0Callback.
I started by define the filter:
2023-08-28 12:35 AM
I'm unsure but I have HAL_FDCAN_Start and HAL_FDCAN_ActivateNotification with FDCAN_IT_RX_FIFO0_NEW_MESSAGE for active interrupt on every new message in HAL_FDCAN_RxFifo0Callback
and you also need to have HAL_FDCAN_ActivateNotification in FDCAN RX callback too.
2023-08-28 12:50 AM
I did all of this of course.
The problem is with the filter setting
Thank you
2023-08-28 01:48 AM
I had read your can config and your CAN id that I think that it's not oversize of Standard ID. I think it's an extended id.
so you should try to change IdType to extended one.
2023-08-28 02:31 AM
i work with CAN-ID of 10 to 200. So its not a problem of ID length. Any way I changed the ID type to extend and it still not working - passing all with regular filter only, and block all with the global filter