Skip to content
Snippets Groups Projects
Commit 81375def authored by Per's avatar Per
Browse files

docs

parent 7717d7b6
Branches
No related tags found
No related merge requests found
...@@ -42,10 +42,18 @@ Notice, the itmdump tool must be started BEFORE the openocd session (see Debug) ...@@ -42,10 +42,18 @@ Notice, the itmdump tool must be started BEFORE the openocd session (see Debug)
## 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 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.). 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. This will start openocd and gdb, and by default break at main. To execute the program to end, click the play icon.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment