diff --git a/README.md b/README.md index ea7b61ace1666c64527247abfc27fbf6a3d4213a..5ef8f60ef633af9e2e4ae82cd5c2fc37c25c359e 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,18 @@ Notice, the itmdump tool must be started BEFORE the openocd session (see Debug) ## Debug +### Setup + +Select the boxed `d7020e_srp Debug oldgdb`, and click the cogwheel. +Under Debugger/GDB Client Setup, change the path to the executable +(/home/arch/Downloads/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gdb). + +### Run/Debug + To run the program you will use the debugger integrated in eclipse. It uses openocd to communicate with the nucleo board, and gdb to flash the image (generated .elf file) and interact (running, stepping, setting breakpoints etc.). -Click on the select the boxed `d7020e_srp Debug oldgdb` and click the boxed green bug icon. (There are other ways as well.) +Select the boxed `d7020e_srp Debug oldgdb` and click the boxed green bug icon. (There are other ways as well.) This will start openocd and gdb, and by default break at main. To execute the program to end, click the play icon.