Search found 3 matches

by mormod
Fri Jan 29, 2021 1:37 pm
Forum: Bug Reports
Topic: CAN Filters STM32F767
Replies: 4
Views: 5002

Re: CAN Filters STM32F767

I actually found the error. Due to the way that the controller compares filters and incoming message IDs, the programmed filters need to be shifted 3 bits to the left if scale = 1 or 5 bits if scale = 0. See figure 501 in the reference manual (also attached). The incoming IDs INCLUDING the IDE, RTR ...
by mormod
Fri Jan 29, 2021 12:22 pm
Forum: Bug Reports
Topic: CAN Filters STM32F767
Replies: 4
Views: 5002

Re: CAN Filters STM32F767

Hi,
I double checked all the registers.
FMR.CAN2SB = 0x03, so CAN2 gets all the filters from 3 on
FM1R = 0x0..0, so every filter is in masked mode
FS1R = 0x0..07, so every filter is in 32-bit mode
FFA1R = 0x0..04, so filter 2 is assigned to FIFO1, filter 0 and 1 to FIFO0
FA1R = 0x0..07, so filters ...
by mormod
Thu Jan 28, 2021 5:50 pm
Forum: Bug Reports
Topic: CAN Filters STM32F767
Replies: 4
Views: 5002

CAN Filters STM32F767

Hi,
I'm trying to implement a simple CAN RX thread for a STM32F767ZIT6 witch ChibiOS 20.3.2 using both RX FIFOs provided by the chip. The used transceiver is a MCP2551SN. As of now, I am able to receive messages just fine, if no filters are applied to them. Problem is, if the filters (shown below ...