2021-10-28 02:17 AM
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?
2021-10-28 02:18 AM
Also using FilterScale = CAN_FILTERSCALE_32BIT
2021-10-28 02:19 AM
Also I like to clarify, this is the only filter configured and activated.