How to use GDB environment on Eclipse with pyOCD
Environment
Target : WIZwiki_w7500
OS : Linux Mint
Kernel : 3.15.8-031508
featured image
Setting for pyOCD
Download pyOCD and install
refer to this document.
Run pyOCD gdb server script
$ sudo python test/gdb_test.py
[sudo] password for kaizen:
INFO:root:Waiting for a USB device connected
INFO:root:new board id detected: 22010203066B9E1CFB9743E5
INFO:root:board allows 1 concurrent packets
INFO:root:DAP SWD MODE initialised
INFO:root:IDCODE: 0xBB11477
INFO:root:4 hardware breakpoints, 0 literal comparators
INFO:root:CPU core is Cortex-M0
INFO:root:2 hardware watchpoints
INFO:root:GDB server started at port:3333
GNU ARM Eclipse
Plugins install
For more information, Refer to this URL.
Setting debug option
[Run]-[Debug Configurations]-[GDB Hardware Debugging]-[New Project]-[Main]
![www.life4iot.com_010](https://c2.staticflickr.com/6/5538/18828165411_12370fe4bd.jpg)
changed GDB Command for using GNU ARM tools.
[Debug Configurations]-[Debugger] and setting for remote target.
![www.life4iot.com_012](https://c4.staticflickr.com/4/3678/18637795920_2d089bce18.jpg)
Setting to “Start up” tap as below.
![www.life4iot.com_013](https://c2.staticflickr.com/6/5504/18637796160_60c6d07416.jpg)
Run Debug
If GDB server and GDB client on Eclipse are run nomarlly, Your firmware will be break on your break point which you were selected.
![www.life4iot.com_014](https://c2.staticflickr.com/6/5553/18637930498_e85c9ac5db.jpg)