Hello, I am using ARM Cortex M0 - (STM32F091RC). Using STM32CubeMX (Version 4.7.1 STM32Cube V1.0) I have configured the pins and generated the code. PB15 is configured as SYS_WKUP7. I am using Keil. Below is the version info of Keil. IDE-Version: µVision V5.14.0.0 Tool Version Numbers: Toolchain: MDK-ARM Cortex-M0/M0+ 256K for ST Version: 5.14.0.0 Toolchain Path: C:\Keil_v5\ARM\ARMCC\Bin C Compiler: Armcc.exe V5.05 update 1 (build 106) Assembler: Armasm.exe V5.05 update 1 (build 106) Linker/Locator: ArmLink.exe V5.05 update 1 (build 106) Library Manager: ArmAr.exe V5.05 update 1 (build 106) Hex Converter: FromElf.exe V5.05 update 1 (build 106) CPU DLL: SARMCM3.DLL V5.14.0.0 Dialog DLL: DARMCM1.DLL V1.12.0.0 Target DLL: UL2CM3.DLL V1.155.0.0 Dialog DLL: TARMCM1.DLL V1.9.0.0
While debugging when I open the PWR_CSR register, it only shows BRE(Bit 9),EWUP(Bit 8),BRR(Bit 3),PVDO(Bit 2),SBF(Bit 1),WUF(Bit 0). But the reference manual for STM32F0x1 (RM0091 Refernce Manual, DocID018940 Rev 7) states that the PWR_CSR has the following Bit 15 to 8 is EWUPx (where x is from 8 to 1),VREFINTRDY(Bit 3),PVDO(Bit 2),SBF(Bit 1),WUF(Bit 0). I have verified the processor selection in the ioc file it shows STM32F091RCTx. Is there any problem in the generation of the code? Have I missed any configurations?
Thank you Deepa