cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F417 CAN Filtering

Jenny
Associate II

Heei,

See figure 342 on page 1088 on reference manual RM0090 Rev 19. It denotes the 32-bit CAN filter register layout.

I have the registers configured as described below:

F1 register is 0x200000 (bit 21 set). e.g. stdid[0]

F2 register is 0x1fe00000 (bit 21 till 28 set) e.g. stdid[7:0]

But only messages with CANID 0x40000 (bit 18 set), e.g. exid[15] according to the figure, are passed to the application. This makes me think the reference manual is inaccurate.

I use the following configuration:

FilterMode = CAN_FILTER_MODE_IDMASK

FilterBank = 0

FilterFIFOAssignment = CAN_FILTER_FIFO0

FilterActivation = CAN_FILTER_ENABLE

FilterScale = CAN_FILTERSCALE_32BIT

Note this is the only filter configured and activated.

Using the STM32F417VET6.

Could someone clarify the statement above?

2 REPLIES 2
Jenny
Associate II

Also using FilterScale = CAN_FILTERSCALE_32BIT

Jenny
Associate II

Also I like to clarify, this is the only filter configured and activated.