S32k3 power on reset issue

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

S32k3 power on reset issue

161 Views
jimmy623
Contributor I

Hi NXP,

     In S32k358 ,I start from LpuartFlexio_Uart_Ip_Example_S32K358 ,

build download and power on reset ,it boot  5 times  automatically,(normally boot only once)

How can i deal with this,Thanks !

jimmy623_1-1718289169831.png

jimmy623_2-1718289205241.png

 

 

jimmy623_0-1718287757064.png

my mian.c :

int main(void)
{
 
    Clock_Ip_Init(&Clock_Ip_aClockConfig[0]);
    Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS0,g_pin_mux_InitConfigArr0);
    IntCtrl_Ip_Init(&IntCtrlConfig_0);
 
Lpuart_Uart_Ip_Init(LPUART_UART_IP_INSTANCE_USING_1, &Lpuart_Uart_Ip_xHwConfigPB_1_BOARD_INITPERIPHERALS);
IntCtrl_Ip_EnableIrq(LPUART1_IRQn);//uart1 for debug
    IntCtrl_Ip_InstallHandler(LPUART1_IRQn, LPUART_UART_IP_1_IRQHandler, NULL_PTR);
    Lpuart_Uart_Ip_SyncSend(LPUART_UART_IP_INSTANCE_USING_1, (const uint8 *)("welcome\n"), strlen("welcome\n"),100000u);
 
Mcu_ResetType boot_reason = MCU_NO_RESET_REASON;
boot_reason = Mcu_GetResetReason();
if((MCU_NO_RESET_REASON != boot_reason))
Bootloader_DebugPrint("\n Get Boot_Reason:0x%d\n",boot_reason);
while(1);
 
}

   

0 Kudos
3 Replies

144 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @jimmy623,

The MC_RGM[FES] register points to an external reset.

danielmartynek_0-1718361646816.png

danielmartynek_1-1718361664361.png

Check the SBC or other devices that are connected to reset_b of the MCU on the PCB.

 

Regards,

Daniel

 

 

 

 

 

0 Kudos

110 Views
jimmy623
Contributor I
two source connect to RESET_B :
1.PWM
2.SWD for jlink debug
so if PWM generate destructive reset, how can i find out the root cause?
Thanks
0 Kudos

70 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Why do you have a PWM signal connected to the reset_b pin?

The reset_b pin should be connected to reset pins of other devices only.

 

Regards,

Daniel

 

0 Kudos