S32k3 power on reset issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32k3 power on reset issue

672件の閲覧回数
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 件の賞賛
返信
5 返答(返信)

655件の閲覧回数
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 件の賞賛
返信

621件の閲覧回数
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 件の賞賛
返信

581件の閲覧回数
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 件の賞賛
返信

472件の閲覧回数
jimmy623
Contributor I

Hi  danielmartynek,

     In RM, mcu/pmic handshake by using PGOOD ,

If PGOOD assertion does not arrive within the configured time, POR WDOG will issue a reset to the MCU.

Can you show me how to enable PGOOD function in fs26.

Thanks!

jimmy623_0-1720662860672.png

 

jimmy623_1-1720662895503.png

 

jimmy623_2-1720662970708.png

 

0 件の賞賛
返信

460件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @jimmy623,

Can you post this question in this community?

https://community.nxp.com/t5/Power-Management/bd-p/Power-Management

 

Regards,

Daniel

0 件の賞賛
返信