First of all, my configuration :D Ride7 version 7.14.0001 with RKit-ARM 1.13.0810 and STM32F103RBT6 daughterboard. Then, the problem ;) I tried to use low power modes but I have some problems with this. When I use in my code any __WFI or __WFE istruction, after debugging and running the RUN led of RLink turns on but nothing happens - even if in the code I turn on some LEDs before using the __WFI istructions they are not turned on. In the new IDE version I am using, a message appears:''Lost communication with target.Terminating debug session''. I used also the PWR examples in STM FWLib, and others from STM website, but they all give me this problem. What could it be? Greeting.
You need to set a flag in the debug configuration registers to prevent the low power modes from shutting down the clock and/or power to the debug unit. I don't remember the name of the register, but it's in the debug section of the ref manual.