Skip to content

Instantly share code, notes, and snippets.

@ytsuboi
Created October 27, 2014 14:21
Show Gist options
  • Save ytsuboi/feb9c68f81e58b4e51bb to your computer and use it in GitHub Desktop.
Save ytsuboi/feb9c68f81e58b4e51bb to your computer and use it in GitHub Desktop.
OpenOCDでmbed LPC1114FN28に書いてみた。
$ openocd -f LPC1114.cfg -c "program 1114LEDBlink_LPC1114.bin verify"
Open On-Chip Debugger 0.9.0-dev-snapshot (2014-10-27-17:22)
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'
adapter speed: 10 kHz
adapter_nsrst_delay: 200
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 = 1 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 0x0bb11477
Info : lpc11xx.cpu: hardware has 4 breakpoints, 2 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x1fff0040 msp: 0x10000ffc
** Programming Started **
auto erase enabled
wrote 4096 bytes from file 1114LEDBlink_LPC1114.bin in 80.545708s (0.050 KiB/s)
** Programming Finished **
** Verify Started **
verified 1752 bytes in 2.881110s (0.594 KiB/s)
** Verified OK **
shutdown command invoked
#LPC1114.cfg
source [find interface/cmsis-dap.cfg]
# chip name
set CHIPNAME LPC1114FN28
source [find target/lpc11xx.cfg]
$CHIPNAME.cpu configure -event gdb-attach {
echo "halting"
halt
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment