System Reset after Wakeup

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

System Reset after Wakeup

850件の閲覧回数
Vamsi421
Contributor II


Hi ,
I am working with the NXP S32K344 board and have implemented a low-power sleep mode with wake-up functionality. However, I am encountering an issue where the system resets after waking up from sleep when I attempt to change the clock configuration back to normal.

Below is the code for entering sleep mode and the wake-up routine:

Entering Sleep Mode:

void Wkup_EnterStandby(void)
{
/* Switch to FRIC clock */
Clock_Ip_Init(&Clock_Ip_aClockConfig[1]);

/* Disabling all Interrupts */
DisableAllInterrupts();

/* Enabling wakeup Event */
Wkup_Config();

/******* LOW POWER DEBUG MODE *******/
/* Disable POR_WDG */
IP_DCM_GPR->DCMRWP1 |= DCM_GPR_DCMRWP1_STANBDY_PWDOG_DIS_MASK;

/* Enable STANDBY IO configurations and enter Standby Mode */
Power_Ip_SetMode(&Power_Ip_aModeConfigPB[1]);

/* Enabling all Interrupts */
EnableAllInterrupts();
}
Wake-up Routine:

void Wakeup_rotine(void)
{
// If we are coming from sleep mode, switch to run mode clocks
Clock_Ip_Init(&Clock_Ip_aClockConfig[0]); // Run mode clock configuration

// Initialize Interrupts
Intr_init();

// Initialize required modules
Can_Setup();
FlexCAN_Ip_RxFifo(INST_FLEXCAN_0, &rxFifoData);
}

Issue: When I attempt to change the clock configuration to normal after waking up, the system resets. Please provide guidance or suggestions on what might be causing this issue.

 

 



0 件の賞賛
返信
3 返答(返信)

822件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

When I attempt to change the clock configuration to normal after waking up, the system resets. Please provide guidance or suggestions on what might be causing this issue.

Which kind of reset do you see after reset in the RGM (FES/DES) module?

petervlna_0-1745926784896.png

Best regards,

Peter

0 件の賞賛
返信

793件の閲覧回数
Vamsi421
Contributor II

Hi @petervlna ,
   I seen DES type reset in RGM and getting Power on reset.

0 件の賞賛
返信

740件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I seen DES type reset in RGM and getting Power on reset.

Make sure you clear the reset flags after power on reset in your SW.

This way you will remove all the possible remnant latched resets in DES/FES.

So you see DES flags set? Which ones?

POR flag can be remnant of the board power up phase from before wakeup.

Best regards,

Peter

0 件の賞賛
返信