Unable to read Local variables in Keil debugger;

8 posts / 0 new
Last post
MichaelKopp
Offline
Last seen:5 years 10 months ago
加入:2014-10-13 12:55
Unable to read Local variables in Keil debugger;

Hi,

I'm unable to view parameters/local variables when debugging with Keil's uVision 5.12.

I try to debug some application on the DA14580 using Keils uVision 5.12.0.0 (free Version). I installed the ARM5 legacy support for Cortex-Mhttp://www2.keil.com/mdk5/legacy/.

If I set a breakpoint to a function like (in the serial project example)

sps_server_create_db_req_handler

I cannot view the contents of the parameters. In the `Call Stack + Locals'-Window, they are marked as `&tl;not in scope>'. (I can, though, look up the register values and the usual calling conventions suggest, that R0-R3 are my four parameters.) The same problem with some local variables; they are shown as `' although I know, they are in scope...

Do you know, how to solve this issue?

Thank you,
Michael

BarryReinhold
Offline
Last seen:6 years 2 months ago
加入:2014-07-22 21:15
Michael,

Michael,
Did you make any progress on this issue?
I have the same problem. Version of uVision is also 5.12.

Harry2315
Offline
Last seen:4 years 1 month ago
加入:2015-01-20 06:10
"not in scope" means the

"not in scope" means the system use CPU register to store your variable.

TR_Dialog
Offline
Last seen:1 week 4 days ago
Staff
加入:2014-06-30 23:52
Hi,

Hi,

You can try changing the optimization level.

Thanks,

TR_DIALOG

Aviel
Offline
Last seen:6 years 1 month ago
加入:2015-02-22 14:34
I have the same problem.

I have the same problem. Version of uVision is also 5.12.
I changed the optomization level and this is not solved.

justinjansen
Offline
Last seen:4 years 2 months ago
加入:2014-11-20 03:24
Even if variables are not

Even if variables are not using the stack, the debugger should be smart enough to figure out where the variable is stored and display the locals for you. But I have the same problem, even with optimization turned off.

summer20100514
Offline
Last seen:4 years 5 months ago
Guru
加入:2014-12-30 05:01
I solved my problem by

I solved my problem by setting the optimization level to level0 (-O0)

omerorhun
Offline
Last seen:3 years 8 months ago
加入:2017-08-29 15:09
您可以定义另一个

您可以定义另一个variable that is global. then, under that line, assign the local variable's value in it. thank you Harry2315