Hi,
I am using the unified_bootloader_demo_V2.1.zip with my S32K144 ECU.
I want to adapted the MCAL for my ECU pin layout.
CAN0 is now mapped to PC2, PC3
This is the init function for CAN:
static void BSP_init(void)
{
........
/*CAN init*/
CAN_Init(&can_pal1_instance, &can_pal1_Config0);
CAN_InstallEventCallback(&can_pal1_instance, &CAN_ISR_Callback, NULL);
CAN_Receive(&can_pal1_instance, RX_MAILBOX_ID, &g_RXCANMsg);
CAN_ConfigRxBuff(&can_pal1_instance, RX_MAILBOX_ID, &RXCANMsgConfig, RX_FUN_ID);
CAN_SetRxFilter(&can_pal1_instance, RXCANMsgConfig.idType, RX_MAILBOX_ID, RX_ID_MASK);
CAN_ConfigTxBuff(&can_pal1_instance, TX_MAILBOX_ID, &TXCANMsgConfig);
INT_SYS_EnableIRQ(CAN0_ORed_0_15_MB_IRQn);
.........
}
The following ISR has been mapped to the default vector table in flash:
CAN0_ORed_IRQHandler ;can
CAN0_Error_IRQHandler ;can (95)
CAN0_Wake_Up_IRQHandler ;can
CAN0_ORed_0_15_MB_IRQHandler ;can
CAN0_ORed_16_31_MB_IRQHandler ;can
The CAN ISRs are not being called.
I cannot see any CAN frames in the tool EcuBus-Pro .
When I send a Diagnostic request in EcuBus-Pro I get the error as : "[7:24:30 PM] [System] Sequence S32K144_CAN_UDS_Bootloader Error: upper layer read timeout"
What could be the issue ?