OpenOCD - Global Variable misses

Discussions and support about ChibiStudio, the free development environment for ARM.
duracell
Posts: 24
Joined: Tue Jul 05, 2016 8:55 am
Has thanked: 4 times
Been thanked: 1 time

OpenOCD - Global Variable misses

Postby duracell » Tue Jul 19, 2016 1:37 pm

Hi everybody,


I am using chibistudio and OpenOCD for debugging purpose.

I have a small problem and I think that I am not the only one: sometimes, I do not find the variable I am looking for in the global variables list.

I am sure the variable I am searching is a global variable. I often I have this problem, the most of the times the variable appears after having closed and reopened Chibistudio, other times I create a similar variable with a similar name and it appears. Sometimes I am not able to make this variable appear in the list :D


Some of you sorted out this problem?

Thank you in advance!

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: OpenOCD - Global Variable misses

Postby Giovanni » Tue Jul 19, 2016 2:42 pm

Hi,

Try reindexing the project then you may try compiling with -O0 and see if it is an optimization problem.

Giovanni

duracell
Posts: 24
Joined: Tue Jul 05, 2016 8:55 am
Has thanked: 4 times
Been thanked: 1 time

Re: OpenOCD - Global Variable misses

Postby duracell » Tue Jul 19, 2016 3:40 pm

Thank you again Giovanni.

I just compiled with O0 and I found the variables I was looking for.


P.S.
I came back to O2 and the variables are still there!

duracell
Posts: 24
Joined: Tue Jul 05, 2016 8:55 am
Has thanked: 4 times
Been thanked: 1 time

Re: OpenOCD - Global Variable misses

Postby duracell » Wed Aug 31, 2016 11:04 am

Hi,

I have again the same problem and this time I am not able to sort it out. The global variable list of OCD debugger does not contain all the global variables.


I have tried to open- re-open, clear, copy the project in a new project, change optimization, I have changed the board (with one equal).... but nothing, the variable list is alway the same.

I have also tried to use a variable, that was in the list, in a new position, but as I launched again the debugger could no loger find it.


Any suggestion? :(


Return to “ChibiStudio”

Who is online

Users browsing this forum: No registered users and 3 guests