R
R
ramir2020-01-02 22:05:55
C++ / C#
ramir, 2020-01-02 22:05:55

How to get the values ​​​​of variables from a microcontroller memory dump?

There is a firmware source code in C, there is a microcontroller memory dump. How to analyze a memory dump for the value of global variables? What are the tools for this. It's like I'm in the debugger and I want to inspect some variable. Variables refer to data on the stack. There is no dynamic work with memory.

nrf52840 microcontroller gcc
compiler (in segger embedded studio). The project is also built with gcc-arm-none-eabi, and it is planned to switch to it if it is important.
Memory dump made by the commandnrfjprog --readram

It is necessary for debugging, so that in case of an error, fix the state of the device (memory) and analyze its dump. Without worrying that something physically happens to the device during the analysis process and the state will be lost. This is especially true when problems rarely occur.

I apologize in advance for incorrect wording.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question