2021-03-29 09:47 AM
HI,
I'm not able to get the FDCAN filter working on a STM32MP157C-DT2. I'm able to receive valid ID' with no problem, however, invalid ID's are getting through.
Would someone be kind enough to take a quick look at my setup to make sure I did not miss anything. Please see attached code.
Thank you!
2022-05-19 03:02 AM
Hello,
when you say "are getting through" do you mean that invalid ID's are not filtered ?
I see in your code :
if (HAL_FDCAN_ConfigGlobalFilter(&hfdcan1, FDCAN_REJECT, FDCAN_ACCEPT_IN_RX_FIFO0, FDCAN_REJECT_REMOTE, FDCAN_FILTER_REMOTE))
so FDCAN_ACCEPT_IN_RX_FIFO0 means that the invalid ID should be stored in FIFO0
is this what is happening ?
JM
2022-05-19 03:21 AM
Just noticed the following:
you have set: hfdcan1.Init.ExtFiltersNbr = 0;
I think it should be set to 1..
JM