Hello @Senlent
Thanks a lot for your answer,
The MCU goes to hardfault when i send a can frame from my CAN-Case into the MCU.
i can however send frames from MCU to my Canoe.
i want to set a range of ids not only 1, and im using CAN-FD with 64 bytes, here is init function, can you please update the RX filter and also why the MCU hard fault ?
between im using Freertos i dont know how usefull this info can be !
Flexcan_Ip_StatusType FlexCan_Init_Config(void)
{
Flexcan_Ip_StatusType retVal = E_NOT_OK;
Flexcan_Ip_MsgBuffType rxData;
Flexcan_Ip_DataInfoType rx_info = {
.msg_id_type = FLEXCAN_MSG_ID_STD,
.data_length = 64u,
.is_polling = FALSE,
.is_remote = FALSE,
.fd_enable = TRUE,
};
/* Enable interrupt on CAN 0 */
IntCtrl_Ip_EnableIrq(FlexCAN0_0_IRQn);
IntCtrl_Ip_EnableIrq(FlexCAN0_1_IRQn);
IntCtrl_Ip_EnableIrq(FlexCAN0_2_IRQn);
retVal = FlexCAN_Ip_Init(INST_BOARD_INITPERIPHERALS_FLEXCAN_0, &FlexCAN_BOARD_InitPeripherals_State0, &FlexCAN_Config0_BOARD_InitPeripherals);
retVal |= FlexCAN_Ip_SetRxIndividualMask(INST_BOARD_INITPERIPHERALS_FLEXCAN_0,RX_MB_IDX,0xFFFFFFFF);
retVal |= FlexCAN_Ip_ConfigRxMb(INST_BOARD_INITPERIPHERALS_FLEXCAN_0, RX_MB_IDX, &rx_info, Rx_MSG_ID);
/* Set the FlexCAN instance in START mode */
retVal |= retVal |= FlexCAN_Ip_SetStartMode(INST_BOARD_INITPERIPHERALS_FLEXCAN_0);
retVal |= FlexCAN_Ip_Receive(INST_BOARD_INITPERIPHERALS_FLEXCAN_0,RX_MB_IDX,&rxData,FALSE);
return retVal;
}
Thank you.