|
使用STM32H750 MCU, CODE在外面QSPI執行...
現在做STOP模式的功能時,發現進去後,按BUTTON(nON_SWITCH_COM_Pin)後無法重啟。
目前這段CODE是放在外部的QSPI裡執行(XIP模式)...
是不是因為進入STOP模式喚醒後,沒法繼續執行QSPI裡的CODE (NVIC_SystemReset();)
===========================================================
GPIO_InitTypeDef GPIO_InitStruct = {0};
Mcu_Init_IWDG_Refresh();
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
GPIO_InitStruct.Pin = nON_SWITCH_COM_Pin;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Mode = GPIO_MODE_EVT_FALLING;
HAL_GPIO_Init(nON_SWITCH_COM_GPIO_Port, &GPIO_InitStruct);
// __disable_irq();
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
NVIC_SystemReset();
|
|