![ST AN3311 Instruction Download Page 32](http://html1.mh-extra.com/html/st/an3311/an3311_instruction_1355862032.webp)
Getting started with the system
AN3311
32/58
Doc ID 18209 Rev 1
Figure 11.
IAR embedded workbench main window
On the main node, where the program name located in the files window is shown, right click
the mouse button and select options. In the window which appears, select the debugger
item in the category list box, and select the proper debugging tool in the driver list box, then
press the Ok button. In the proposed example the J-Link dongle is used (
Press the Make icon or click on Project\Rebuild All. No error or warning should appear once
compiling has completed. Connect the J-Link tool to the USB port of the PC, and connect
the flat cable with the programming adapter. Plug the adapter into the dongle connector.
Press the debug icon, CTRL+D or click project\debug. The debugger starts to download the
firmware to the dongle through the J-Link debugger\programmer. Press the Go button, F5 or
click debug\go in order to execute the firmware in debug mode. To run the dongle in
standalone mode, press the stop debugging icon, CTRL+SHIFT+D or click debug\stop
debugging. Then remove the J-link adapter from the dongle and reset the board by
unplugging and plugging the power cable back in.
Figure 12.
IAR embedded workbench debugger options