Topic : Enter debug without resetting device.

Forum : ST7/STM8

Original Post
Post Information Post
December 28, 2011 - 4:27am
Guest

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.

Replies
Post Information Post
+1
0
-1
January 2, 2012 - 10:14am
Raisonance Support Team

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

+1
0
-1
January 4, 2012 - 6:51pm
Guest

stm8L151C4

+1
0
-1
January 5, 2012 - 9:46am
Raisonance Support Team

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,

+1
0
-1
January 9, 2012 - 3:19pm
Guest

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?