AnsweredAssumed Answered

FlexCAN filter duplicated on all configurations

Question asked by Aurelien.Leclercq on May 12, 2015
Latest reply on May 18, 2015 by Erwan Y
Hello,
I'm using both FlexCAN of SPC56EL60 on SPC5 Studio 3.4.3 and I wanted to define filters for each of them. I created a config for each of them containing different filters. CAN1 has 16 filters from 0x200 to 0x20F and CAN2 has 16 filters from 0x400 to 0x40F.
--> 1st problem: all filters are merged in all config (CAN1 filters config was 0x200 to 0x20F AND 0x400 to 0x40F). I had to edit can_lld_cfg.c manually.
--> 2nd problem: the Rx mailbox number is fixed for both FlexCAN. The code generator does not allow to set a specific number for each FlexCAN.
--> 3rd problem: setting Rx mailbox number to 16 does not affect the function can_lld_is_rx_nonempty which only checks the first 8 mailboxes when not using the CAN_ANY_MAILBOX constant.

Outcomes