AnsweredAssumed Answered

Need help with CAN controller

Question asked by hobb.epy on May 27, 2016
Latest reply on May 28, 2016 by hobb.epy
Hi,
i m using STM32F103 nucleo board. I m configuring CAN controller to receive particular message ID for Standard Identifier (CAN ID : 0x0212) 
Here is my configuration for acceptance filter.

CAN_FilterStruct.FilterIdHigh = 0x0000; /* Upper 16bit filter ID */
CAN_FilterStruct.FilterIdLow = 0x0123; /* Filter lower 16bit ID */
CAN_FilterStruct.FilterMaskIdHigh = 0x0000; /* Upper 16bit filter mask */
CAN_FilterStruct.FilterMaskIdLow = 0x0000; /* Lower 16bit filter mask */
CAN_FilterStruct.FilterFIFOAssignment = CAN_FILTER_FIFO0; /* Which FIFO will be assigned to filter */
CAN_FilterStruct.FilterNumber = 0;
CAN_FilterStruct.FilterMode = CAN_FILTERMODE_IDLIST; /* Identifier mask mode*/
CAN_FilterStruct.FilterScale = CAN_FILTERSCALE_32BIT; /* 32bit ID filter */
CAN_FilterStruct.FilterActivation = ENABLE; /* Enable this filter */
CAN_FilterStruct.BankNumber = 14; /* Start slave bank filter (?) */


Thanks in advance.

Outcomes