cancel
Showing results for 
Search instead for 
Did you mean: 

FDCAN filters not working on STM32mp157

JSpra
Associate III

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!

2 REPLIES 2
Jean-Marc S
ST Employee

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

Jean-Marc S
ST Employee

Just noticed the following:

you have set: hfdcan1.Init.ExtFiltersNbr = 0;

I think it should be set to 1..

JM