Hello,

I use OpenOCD (git snapshot from 14.03.2015) to flash LPC1112,
everything works as expected - MCU is flashed correctly and code runs
fine, but OpenOCD throws error just after flashing (when shutdown is
called). 

Error seems to be completely harmless, but I have no idea what could
cause it.

(Flashing stm32 in similar manner doesn't throw any errors)

Any pointers?


My config file:
------------
# OpenOCD config for LPC1112 MCU

telnet_port 4444
gdb_port 3333

# Jtag Lock Pick
source [find interface/ftdi/jtag-lock-pick_tiny_2.cfg]

# transport select jtag
transport select swd

source [find target/lpc11xx.cfg]

adapter_khz 1000
# adapter_nsrst_delay 100

proc program {} {
    init
    halt
    wait_halt
    flash write_image erase unlock Debug/image.bin 0 
    sleep 10
    reset run
    sleep 10
    shutdown
}

------------

and Openocd Output:

------------
$ openocd -f scripts/lpc1112.cfg -c program 
Open On-Chip Debugger 0.9.0-dev-00346-g3e1dfdc (2015-03-14-23:26)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : FTDI SWD mode enabled
adapter speed: 10 kHz
adapter_nsrst_delay: 200
cortex_m reset_config sysresetreq
adapter speed: 1000 kHz
program
Info : clock speed 1000 kHz
Info : SWD IDCODE 0x0bb11477
Info : lpc11xx.cpu: hardware has 4 breakpoints, 2 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x00000450 msp: 0x10000fe0
auto erase enabled
auto unlock enabled
wrote 4096 bytes from file Debug/image.bin in 0.330883s
(12.089 KiB/s) shutdown command invoked
scripts/lpc1112.cfg:26: Error: 
in procedure 'program' 
in procedure 'shutdown' called at file "scripts/lpc1112.cfg", line 26

------------

thanks,

Daniel

-- 

Attachment: pgpYGVfG_IkF7.pgp
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to