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 `
Do you know, how to solve this issue?
Thank you,
Michael
Michael,
Did you make any progress on this issue?
I have the same problem. Version of uVision is also 5.12.
"not in scope" means the system use CPU register to store your variable.
Hi,
You can try changing the optimization level.
Thanks,
TR_DIALOG
I have the same problem. Version of uVision is also 5.12.
I changed the optomization level and this is not solved.
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.
I solved my problem by setting the optimization level to level0 (-O0)
您可以定义另一个variable that is global. then, under that line, assign the local variable's value in it. thank you Harry2315