TODO: install packages TODO: install libopencm3{,-plus}, omni-base
The following packages should be installed:
The process to debug the stm32f4-discovery is the following:
make
and make flash
the program to debug.source [find interface/stlink-v2-1.cfg] source [find target/stm32f4x.cfg] init $_TARGETNAME configure -rtos ChibiOS
openocd
. Keep that terminal open.interface stlink version
and run again.arm-none-eabi-gdb -tui <program to debug>.elf
. The -tui
flag enables a kind of command window that shows the code.target extended-remote :3333
to connect gdb to openocd.Sometimes openocd fails to detect ChibiOs and this is an open issue
TODO: sw structure
TODO: when add types, functions and how to add them