Forum : ST7/STM8
Original Post
Post Information | Post |
---|---|
December 28, 2011 - 4:27am
|
I would like to enter debug to check things, such as the RTC after some time but seems like the device always resets when entering debug, thus resetting the RTC. i.e. say my product goes to a user for some time, then I get it back, I'd like to get into it to read what the RTC, variables, etc are currently at. |
Hi,
This is an interesting option that we will implement for some devices. (but I cannot tell you when)
Which target CPU are you using?
Best Regards,
Vincent
stm8L151C4
Hi Kraig,
When entering debug the whole flash is reprogrammed, including data EEPROM (part of flash).
But you can configure the behavior of the debugger using your Ride7 application settings "RLink STM8 configuration | Advanced options" and review the "Options for Debug session" options.
Best Regards,
Yeah, I tried playing with those options. I think I unchecked everything but Debug Application. Just tried that and I get error "programmation successful. Debug not requested." Thing is, when you are entering the debug environment, at some point you can see the MCU stop. Then you have to hit Run to start it again but by then it's been reset. Am I correct?