Topic : Tracing variables in Ride7

Forum : ST7/STM8

Original Post
Post Information Post
September 7, 2011 - 10:37am
Guest

Is it possible to activate tracing for variables while debugging SMT8? I have no option to add/delete variable to trace as stated in FAQ. On a bench with a signal simulator everything works perfect, but in real application there is some bug that is hard to find without the full trace of what is happening.

Replies
Post Information Post
+1
0
-1
September 7, 2011 - 2:49pm
Raisonance Support Team

Hi Jack,

Sorry, but this feature is not available on RKit-STM8 in hardware debugging mode.

Best Regards,

+1
0
-1
September 7, 2011 - 5:30pm
Guest

Bruno wrote:
Hi Jack,

Sorry, but this feature is not available on RKit-STM8 in hardware debugging mode.

Best Regards,

Is it just for now ( the software doesn't support it), or there is hardware issue with stm8 that doesn't allow tracing in real time ?

+1
0
-1
September 8, 2011 - 9:53am
Raisonance Support Team

Hi,

It is a hardware limitation of the STM8, which includes no mechanism for full tracing. (neither data nor code) So this cannot be changed by a software upgrade. We might implement by software some kind of data monitoring in the future, but due to hardware limitations it would be far from full (and much less "real-time", whatever that means), so we're not sure it would be useful and we still don't know if we will do it.

However, the hardware and the current version of the software allow to place some data breakpoints, which are usually enough for detecting problems like you describe. Click "Debug" / "advanced commands" / "advanced breakpoints" while in debug.

If you really need some full data tracing, you might inquire towards the ST emulators (STICE). They certainly provide full code tracing. I dont know for data tracing but it's probably available too. Of course these emulators are much more expensive than simple in-circuit debuggers like RLink. Ask all this to ST.

Best Regards,

Vincent

+1
0
-1
September 8, 2011 - 10:45am
Guest

Hello

I found a tool called STMStudio. It allows to trace variable changes in real time and visualize it. The only hard part is that it doesn't import HEX or BIN files to automatically list all variables, so i had to modify my code and put absolute addresses for variables that i want to monitor. Apart from this it works well.It collects signals with resolution ~1ms. This is enough for my project.

As for the breakpoints it is not a possibility, because my project is a device that controls car injectors - i can't stop it because the engine will stall. That is why i need just tracing and logging to file, to be able to analyze it and find a bug :)

Regards
Jacek