iotile / coretools

Core python tools for building and using IOTile based devices
GNU General Public License v3.0
14 stars 7 forks source link

Generate core dump from crashed pods #881

Open anwu opened 4 years ago

anwu commented 4 years ago

Background

We should be able to save a core dump of a halted POD so that we can continue debugging when the device is no longer attached to the debugger.

Goal

Be able to run a dump tool like so... iotile hw --port jlink connect_direct device=nrf52 debug dump_core <core.file> Where you can then do arm-none-eabi-gdb --core <core.file> And then debug from there.

Implementation

A core dump file is pretty much an .elf file of the program with certain sections modified with memory contents of the device at the time of crash.

A more in depth analysis can be read here.

The following implementation steps will be referencing to this article.

anwu commented 4 years ago

Capability will probably need to have some inherent knowledge of where certain FreeRTOS stacks live.

anwu commented 4 years ago

Adding New Program Header