Debug Seeeduino Arch Using CMSIS DAP

Overview

Seeeduino Arch is an mbed enabled development board which combines the advantages of mbed and Arduino.

As Seeeduino Arch don't have the mbed interface, A debug adapter is needed to debug Seeeduino Arch throught SWD. Interestingly, we can use a Seeeduino Arch as a debug adapter to debug another one.

/media/uploads/yihui/arch_as_debug_dadapter.jpg

How to

1. Download firmware

Download the firmware of the debug adapter from https://github.com/xiongyihui/LPC11Uxx_CMSIS_DAP/raw/master/arch_debug_firmware.bin.

2. Update firmware

Connect a Seeeduino Arch with PC through USB and long press the button of the debug adapter. An USB disk named “CRP DISABLD” will appear. Delete the firmware.bin of the disk and copy the downloaded bin file into the disk. Quick press the button to run new firmware. This Seeeduino Arch will become a debug adapter.

3. Connect the debug adapter with a Seeeduino Arch

debug adapterSeeeduino Arch
P1_21P0_15/SWDIO
P1_20P0_10/SWCLK
P1_23P0_0 / nRESET

4. Export program from online to local

Export your online program to local using Keil uVision4 toolchain.

/media/uploads/yihui/export.png

5. Debug Seeeduino Arch using Keil uVision4

Open the download program with Keil uVistion4 and start to debug.


Report

2 comments on Debug Seeeduino Arch Using CMSIS DAP:

31 Mar 2014

Hi Yihui,

great work!! it is very nice to be able to debug LPC11u24 through CMSIS-DAP

but there is a small mistake in your documentation, the correct connection (as in DAP_Config.h) should be:

Adapter PIO1_21 - > Target P0_15/SWDIO

Adapter PIO1_23 -> Target P0_0/nRESET

Atar

01 Apr 2014

Hi Atar,

Thanks, updated : )

Yihui

Please log in to post comments.