stm32-rs / fdcan

FDCAN peripheral driver for STM32 chips
Apache License 2.0
12 stars 14 forks source link

Standard Message Filter ignores MSB of Id #35

Closed ho-ho-ho closed 1 year ago

ho-ho-ho commented 1 year ago

I had some trouble getting a filter to work with standard messages where the 11. bit in the id is set, for example 0x730. Digging deeper, I noticed that the read/write access to the filter registers has the wrong mask (0x3FF instead of 0x7FF), for example here: https://github.com/stm32-rs/fdcan/blob/86bb892c76a00031b80a4b43dc47c587e8cf84c8/src/message_ram/standard_filter.rs#L49C28-L49C28

richardeoin commented 1 year ago

Thanks for reporting! This is indeed a bug