26 lines
546 B
Plaintext

For debuging to work in VS Code export mbed project with the debug flag
For this installing the mbed CLI is required which is done with pip install
pip install mbed-cli
create a project
mbed new --program RCNoster --scm git --offline -v
set the default board
mbed target NUCLEO_F411RE
export to create makefile
mbed export --profile debug -i GCC_ARM -v
mbed export --profile debug
For openOCD use these paths
/usr/share/openocd/scripts/board/st_nucleo_f4.cfg
/usr/share/openocd/scripts/interface/stlink-v2-1.cfg or stlink-v2.cfg