

Then if you give a external rising wave in the PTE4 pin, the MCU will wake up and wait 5 seconds, enter the VLLS3 again.
Iar arm assembly 문법 code#
#define SYSTEM_SIM_SOPT2_VALUE 0x00U /* SIM_SOPT2 */Īfter the above modification, I can use your code working ok on my side, it will wait about 5 seconds then enter in the VLLS3, the power consumption is about 8uA. * SIM_SOPT2: SDHCsrc=0,USBsrc=0,PLLFLLSEL=0,TRACECLKSEL=0,PTD7PAD=0,FBSL=0,CLKOUTSEL=0,RTCCLKOUTSEL=0 */ #define SYSTEM_SMC_PMCTRL_VALUE 0x00U /* SMC_PMCTRL */ #define SYSTEM_OSC_CR_VALUE 0x80U /* OSC_CR */ #define SYSTEM_MCG_C7_VALUE 0x00U /* MCG_C7 */ #define SYSTEM_MCG_C6_VALUE 0x00U /* MCG_C6 */ #define SYSTEM_MCG_C5_VALUE 0x00U /* MCG_C5 */ #define SYSTEM_MCG_SC_VALUE 0x00U /* MCG_SC */ #define SYSTEM_MCG_C4_VALUE 0x00U /* MCG_C4 */ #define SYSTEM_MCG_C2_VALUE 0x24U /* MCG_C2 */ #define SYSTEM_MCG_C1_VALUE 0x06U /* MCG_C1 */
Iar arm assembly 문법 generator#
#define MCG_MODE MCG_MODE_FEI /* Clock generator mode */ #define DEFAULT_SYSTEM_CLOCK 20971520U /* Default System clock value */ #define CLOCK_SETUP as 0, then it will configure the system clock as the default clock, and also configure the according register as follows: * Now execute the stop instruction to go into LLS */ģ. *wait for write to complete to SMC before stopping core */ LLWU_PE1_REG(LLWU_BASE_PTR) = (0x1U SCR &= (unsigned int)~(unsigned int)(SCB_SCR_SLEEPONEXIT_Msk) So you should write function LLWU_init(void) like this:

I already help you check your code, this code will enter in the DefaultISR, because I find in the void LLWU_init(void) function, it even didn't enable the LLWU module clock, then if you configure the LLWU register, it will enter in DefaultISR. Our FAE also transfer your question to me!
