Topic : variable assginment, compiler optimization

Forum : ST7/STM8

Original Post
Post Information Post
October 2, 2012 - 4:53pm
Guest

Hi,

I am using ST Visual Develop and Raisonance Compiler.

I am unable to see any any variables in the watch window.

All I can see is for e.g.:
No symbol "sr1" in current context.

I see that the variables are almost always assigned to registers and not memory addresses.
As part of settings, I only have set the "default optimization" in the compiler settings.

Can you please help me understand the compiler settings so that I can watch the variables.

Thanks,
Pradeep

Replies
Post Information Post
+1
0
-1
October 3, 2012 - 12:31pm
Guest

I found the reason as why I was not able to watch any variables.
I have enabled "inline assembly" by using the following:
#pragma SRC

Is there a way to watch variables while using inline assembly?

+1
0
-1
October 3, 2012 - 1:50pm
Raisonance Support Team

Pradeep,

Unfortunately the SRC mode doesn't currently allow to watch variables.

Stéphane