STM32F767ZI CAN filer/banks configuration for 3 cans
Dear support,
We use 3 cans in STM32F767ZI board and have some problems with filter & banks configurations.
We use FilterScale = CAN_FILTERSCALE_32BIT and CAN_ID_EXT for transmit/receive data. We would like to receive data by the following way: CAN1 should receive all data with bits[9-12]=0001, CAN2 should receive all data with bits[9-12]=0002, CAN3 should receive all data with bits[9-12]=0003.
we set:
filter_id1 = 0x00000200;
filter_id2 = 0x00000400 ;
filter_id3 = 0x00000600;
filter_mask1 = 0x00000200;
filter_mask2 = 0x00000400;
filter_mask3 = 0x00000600;
but these setting don't work properly. Could you pls help to understand what it is a problem here.
And another question about banks. we use :
can1: sFilterConfigCan1.FilterBank = 0, sFilterConfigCan1.SlaveStartFilterBank = 14;
can2: sFilterConfigCan1.FilterBank = 14, sFilterConfigCan1.SlaveStartFilterBank = 14;
can3: sFilterConfigCan1.FilterBank = 2, sFilterConfigCan1.SlaveStartFilterBank = 14;
Is it correct setting?
Thanks, Sabina
