kammce / sammy

Sammy is a tool for managing SJSU-Dev2 firmware projects and to install external packages such as platforms and libraries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sammy debug

kammce opened this issue · comments

Add debugging support via OpenOCD and GDB (or some other custom debugger).

sammy debug /path/to/firmware.elf
sammy debug  --platform="stm32f10x" /path/to/firmware.elf 
sammy debug main.cpp

This will open an OpenOCD session along with GDB and dump the user into the GDB shell.
The platform will be deduced from the build directory path. Users can force their flavor of platform by using the --platform option
If a source file is given, an associated .elf file must have already been generated from a build command. If so, the associated .elf file will be found in the build directory and a debug session will be started.