CAN not working in Unified Bootloader

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CAN not working in Unified Bootloader

451 Views
NJ_NXP
Contributor II
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 ?
 
0 Kudos
Reply
1 Reply

425 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @NJ_NXP,

I can support you in order to get CAN communication in the S32K144, however, keep in mind that Unified bootloader shared on the community is only unofficial demo provided AS IS with no guarantees and no support. Currently we do not have resources to support this demo. Please contact their support page instead.

Are you using an evaluation board, or is this your custom design?

Do you have any oscilloscope or CAN USB tool you can use to analyze the bus? Can you check if the frames that are being sent are valid? 

Also, if this is a custom design, which CAN PHY are you using? By design, S32K144EVB uses the UJA1169TK.

Unified bootloader Demo already provides an example project for S32K144, why not test it? 

Snag_904efe.png

Best regards,
Julián 

0 Kudos
Reply