How to use GDB on Eclipse with pyOCD


Target WIZwiki_W7500
OS Linux Mint
Kernel 3.15.8-031508


Setting for pyOCD

Download pyOCD and install

refer to this document.

Run pyOCD gdb server script

$ sudo python test/ 
[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]


changed GDB Command for using GNU ARM tools. [Debug Configurations]-[Debugger] and setting for remote target.


Setting to “Start up” tap as below.


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.


One thought on “How to use GDB on Eclipse with pyOCD

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s