Hi everyone,
I'm using a Kinetis KV58F1M0VLQ24 with the USB Multilink Universal FX and Kinetis Design Studio 3.2.0 with SWD.
So far, I've gotten just about everything about debugging working including the breakpoints, Disassembly, and the EmbSys Registers.
However, the memory doesn't seem to be updating in either the memory monitors or the variables tab as I step through my source code.
I'm sure it's a simple configuration error in KDS. Only once have I witnessed it show me live values with my mouse hovering over the values. Other times I get a massive table view which show the same content as the memory and variables tab.
Let me know of any suggestions you have.
Thanks!
Hi Gregory Wong
In KDS (Eclipse Kepler) you need to use the Expressions View, Could you check the following links:
How to view global variables under KDS3.20?
https://mcuoneclipse.com/2014/03/16/variable-debugging-with-eclipse-kepler/
The second one is a post from our colleague, here he explains how use the version of eclipse that use KDS to debug and see variables.
Hope this information helps you, please tell me if you have more questions related.
Have a great day,
Jorge Alcala
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you Jorge,
Unfortunately, putting the variables in the Expressions tab did not solve the problem. The memory values are still not updating.
Is there some documentation about how the Kinetis Design Studio interfaces with the debugger? I'm presently looking up GDB server and client commands to see if I can get more verbose output out of the console.
Hi Gregory Wong
Could you share your screen to get what you get when you use Expressions tab? the expression will be updated only when you have your debug session paused, for example if you put a breakpoint, and also the variable need to be in the scope of the program. for example:
Unfortunately the only document that is available is the the one in KDS_v3\pemicro path, but it is a basic explanation of how to configure PE in kds.
Hope this could helps.
Regards
Jorge Alcala
Jorge,
I believe I am using the Expressions tab properly. Between the two breakpoints, I should see the value of checksum16 change to 0x2189, which is what I get when I write the value to UART. In my case, none of the values change, nor does Memory Monitors update.
Hi Gregory Wong
I was making some research and tests of this issue, unfortunately I wasn't able to find anything similar to your issue.
This checksum16 variable is the only one that acts like this or all of your variables? Could you share your project to try to find if there is any configuration in the compiler options or the debugger?
Regards
Jorge Alcala
I have been in touch with PE Micro and they have determined that Kinetis Design Studio is not issuing variable update commands. See the link below for the GDB trace log I sent them last week.
Please let me know if this helps.
Thanks so much Jorge,
It behaves like this no matter what project I use or variable I choose to monitor.
I have Exported the project as a zip file here:
Hi Gregory,
Do you have any compilation setting in the build options???
I can't open the link, it said {"success":false,"error":404,"message":"Not Found"} . You can attached documents in .zip if you use advanced editor:
Regards
Jorge Alcala
I've doubled checked that I'm using the latest PEMicro plugin: GNU ARM PEMicro Interface Debugging Support 2.5.6.201608260234
I also compiled and flashed a test project in Keil MDK. The debugger behaves properly in that IDE.