2022-06-29 11:29 AM
Referring to RM0444 and DS12232 (referring to STM32G0x1 programming manual and data sheet).
In the Low Power section, the RM states that there are five wakeup pins:
But in the register section, there is clear mention of WKUP3 (EWUP3 bit in PWR->CR3, WP3 bit in PWR->CR4, WUF3 bit in PWR->SR1, and CWUF3 bit in PWR->SCR).
However, when I look at the CMSIS files (stm32g081xx.h), I see:
#define PWR_SCR_CWUF_Msk (0x3BUL << PWR_SCR_CWUF_Pos)
0x3B = 00111011 --> note, the third bit (CWUF3) is not included in the mask.
Are the register maps in RM0444 wrong for including bits for WKUP3, or is there some hidden use for WKUP3 I haven't found yet?
Edit: also, WKUP3 does not appear anywhere in DS12232 (Data Sheet for the STM32G071)
2022-07-07 12:26 AM
Hi @SHobb.1 ,
I confirm this issue.
The STM32G031, STM32G041, STM32G051, STM32G061, STM32G071 and STM32G081 have five wakeup pins (WKUPx, x=1,2,4,5,6).
The STM32G0B1 and STM32G0C1 have six wakeup pins (WKUPx, x=1,2,3,4,5,6).
I reported this issue internally.
Internal ticket number: 131448 (This is an internal tracking number and is not accessible or usable by customers).
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.