Symbol not included in compiled hex file

I am debugging an application on a nRF5340 DK using nRF Connect SDK from VS Code. (Toolchain/nRF Connect SDK v2.9.0), everything up-to-date.

The build is "optimized for debugging".

When I set a bp in an interesting function I want to see the actual contents of an array which is manipulated.

From the context menu I select: "Reveal symbol in memory explorer" but get the error "The symbol XYZ is not included in the compiled hex file".

Actually I don't see any of my user-defined variables in the selection box. 

What do I need to do to properly see the memory area and contents of a variable I want to inspect?

Parents Reply Children
  • Hi Markus, 
    I found that I can lookup for the global or static variable but not the dynamic allocated variable. If you click on the plus sign and select ELF symbol you can find the static variable. 

    My understanding is that Memory Explorer doesn't follow dynamic variable. I will check internally to get this confirmed. 

  • Thank you Hung Bui. But why do I even need to use that special option of looking up an ELF symbol? What's different to the symbols I CAN find with the other options?