OPENOCD + MBED LPC 1768 + CMSIS-DAP NOT FOUND

Hello everyone ,

When I am trying to connect mbed LPC1768 with openocd , I got the following output :

pinkesh@infonet-01:~/installs/stlink$ openocd -c “interface cmsis-dap” -f ~/openocd_latest/openocd/tcl/board/mbed-lpc1768.cfg

Open On-Chip Debugger 0.9.0-dev-00185-g55e430f (2014-10-20-21:20)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.sourceforge.net/doc/doxygen/bugs.html

Info : only one transport option; autoselect ‘cmsis-dap’

Warn : Interface already configured, ignoring

adapter speed: 10 kHz

adapter_nsrst_delay: 200

cortex_m reset_config sysresetreq

Error: unable to find CMSIS-DAP device
in procedure ‘init’

Here is my openocd version

Open On-Chip Debugger 0.9.0-dev-00185-g55e430f (2014-10-20-21:20)

Licensed under GNU GPL v2

When I connect to FRDM-KL25Z board , I got the output as per below

pinkesh@infonet-01:~/installs/stlink$ openocd -c “interface cmsis-dap” -f ~/openocd_latest/openocd/tcl/board/frdm-kl25z.cfg

Open On-Chip Debugger 0.9.0-dev-00185-g55e430f (2014-10-20-21:20)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.sourceforge.net/doc/doxygen/bugs.html

Info : only one transport option; autoselect ‘cmsis-dap’

Warn : Interface already configured, ignoring

Info : add flash_bank kinetis MKL25Z128VLK4.flash

adapter speed: 1000 kHz

cortex_m reset_config sysresetreq

Info : CMSIS-DAP: SWD Supported

Info : CMSIS-DAP: Interface Initialised (SWD)

Info : CMSIS-DAP: FW Version = 1.0

Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1

Info : DAP_SWJ Sequence (reset: 50+ ‘1’ followed by 0)

Info : CMSIS-DAP: Interface ready

Info : clock speed 1000 kHz

Info : IDCODE 0x0bc11477

Info : MKL25Z128VLK4.cpu: hardware has 2 breakpoints, 2 watchpoints

Info : MDM: Chip is unsecured. Continuing.

What could be the problem ?

Anyone please —

  • Pinkesh

Are you sure you have CMSIS-DAP capable bootloader and not stock “OpenSDA”? I recommend the CMSIS-DAP implementation from mbed, it seems to be the most advanced.

https://developer.mbed.org/handbook/mbed-SDK

Check lsusb, the device description should contain CMSIS-DAP, then OpenOCD will see it.

Hello DanV ,

Output of lsusb command :

Bus 004 Device 010: ID 0d28:0204 NXP LPC1768

Hello ,

Just check sudo lsusb -v and look for the CMSIS-DAP string … :slight_smile:

I have uploaded latest firmware from the following link and it is working fine …:slight_smile:

https://developer.mbed.org/handbook/Fir … 8-LPC11U24