AnsweredAssumed Answered

Help with CAN filter on stm32f767

Question asked by Vaclav Zajic on Apr 12, 2018
Latest reply on Apr 20, 2018 by Vaclav Zajic

Hello, I would like to be able to receive CAN message 0x200(CAN_ID_RX is 0x200) and I have a CAN filter configured like this:

 

sFilterConfig.FilterBank = 0;
sFilterConfig.FilterMode = CAN_FILTERMODE_IDLIST;
sFilterConfig.FilterScale = CAN_FILTERSCALE_32BIT;
sFilterConfig.FilterIdHigh = CAN_ID_RX << 5;
sFilterConfig.FilterIdLow = 0x0000;
sFilterConfig.FilterMaskIdHigh = 0x0000;;
sFilterConfig.FilterMaskIdLow = 0x0000;
sFilterConfig.FilterFIFOAssignment = CAN_RX_FIFO0;
sFilterConfig.FilterActivation = ENABLE;
sFilterConfig.SlaveStartFilterBank = 14;

 

I don't receive any messages and by using debugger I found out that the function HAL_CAN_IRQHandler in stm32f7xx_hal_can.c is never called.

 

Can you help me?

 

Thanks 

 

Vaclav

Outcomes