System Reset after Wakeup

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

System Reset after Wakeup

1,397 次查看
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 回复数

1,369 次查看
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 项奖励
回复

1,340 次查看
Vamsi421
Contributor II

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

0 项奖励
回复

1,287 次查看
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 项奖励
回复