diff --git a/README.md b/README.md index eee57ac04d06a9698c9fddb111e804c04de13e28..c85235d6bd94f1e8f475964703fc432db4caa46d 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,29 @@ d7020e_srp and Finish +## Compile + +Here you have many options, you can use the Ctrl-B, or the Sledgehammer icon e.g. + +## ITM + +We use the ITM tracing for this example. Open a terminal in eclipse (Shift-Ctrl-Alt T) or the terminal icon (monitor symbol) click Ok (default setting). + +Start the ITM tracing tool + +``` +itmdump /tmp/swo.log +``` + +## 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.). + +Clic on the small green bug icon and select the d7020e_srp Debug oldgdb. (There 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. + +For further info on gdb debugging in eclipse see e.g., http://gnuarmeclipse.github.io/debug/ + +