This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

low power mode

I am trying to put my STM32F103 eval board into standby mode and wake it up using two different external interrupts. I can use the external interrupts with no problem, but I can not get the low power mode to work correctly. I set up the power modes with the following functions in my main():

/* Enable WKUP pin */ PWR_WakeUpPinCmd(ENABLE);

/* Allow access to BKP Domain */ PWR_BackupAccessCmd(ENABLE);

But it seems that as I step through the code on the hardware that it does not ever set the PWR_CR or PWR_CSR with the correct values (it works perfect in the simulator)...any ideas as to how to set those registers (i have also tried to directly set those PWR registers by byte masking and setting it equal to the values I want, no dice).

0