Skip to content

Instantly share code, notes, and snippets.

@master-q
Created January 17, 2014 14:01
Show Gist options
  • Save master-q/8473777 to your computer and use it in GitHub Desktop.
Save master-q/8473777 to your computer and use it in GitHub Desktop.
OpenOCD + CMSIS-DAP で悩んだ話
$ sudo /usr/local/bin/openocd -f /usr/local/share/openocd/scripts/board/mbed-lpc1768.cfg
Open On-Chip Debugger 0.8.0-dev-00319-g94d64cc (2014-01-17-13:11)
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'
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
adapter speed: 10 kHz
adapter_nsrst_delay: 200
cortex_m reset_config vectreset
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 10 kHz
Info : IDCODE 0x2ba01477
Info : lpc1768.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection from 3333
Warn : acknowledgment received, but no packet pending
undefined debug reason 7 - target needs reset
Warn : Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00010254 msp: 0x10008000
Warn : negative acknowledgment, but no packet pending
Warn : negative acknowledgment, but no packet pending
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1001). Workaround: increase "set remotetimeout" in B
Warn : Verification will fail since checksum in image (0x00000000) to be written to flash is different from calculated vector checksum (0xef.
Warn : To remove this warning modify build tools on developer PC to inject correct LPC vector checksum.
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1120). Workaround: increase "set remotetimeout" in B
Error: lpc1768.cpu -- clearing lockup after double fault
Polling target lpc1768.cpu failed, GDB will be halted. Polling again in 100ms
Error: CMSIS-DAP: Write Error (0x04)
Polling target lpc1768.cpu failed, GDB will be halted. Polling again in 300ms
Polling target lpc1768.cpu succeeded again
Info : dropped 'gdb' connection
@master-q
Copy link
Author

うーん。まず速度が遅すぎる。クロック指定とかないもんでしょうか。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment