Hi all.
For a while, I've noticed my setup complaining after flash-programming my
STM32F429 device. (Eg. 'make flash' fails on the final stage, causing my IDE to
complain)
I've ignored it so far, since the flash-programming seemed to work and I
thought it was my own fault; eg. something I probably messed with.
Today I decided to investigate a little further; I still haven't gotten much
useful information, but the following line complains about 'shutdown' failing;
that really does not make sense. ;)
$ openocd -f interface/ftdi/jtag-lock-pick_tiny_2.cfg -c "transport select swd"
-f target/stm32f4x.cfg -c "adapter_khz 10; shutdown" || echo "status: $?"
Open On-Chip Debugger 0.9.0-dev-00357-g09ca5af (2015-03-26-16:51)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : FTDI SWD mode enabled
swd
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
cortex_m reset_config sysresetreq
adapter speed: 10 kHz
shutdown command invoked
status: 1
On my STM32F407 Discovery Board, I've also tried ...
$ openocd -f interface/stlink-v2.cfg -c "transport select hla_swd" -f
target/stm32f4x.cfg -c "adapter_khz 10; shutdown" || echo "status: $?"
Open On-Chip Debugger 0.9.0-dev-00357-g09ca5af (2015-03-26-16:51)
...
adapter speed: 10 kHz
shutdown command invoked
status: 1
On a LPC1768 board, I tried the same thing:
$ openocd -f interface/ftdi/jtag-lock-pick_tiny_2.cfg -c "transport select swd"
-f target/stm32f4x.cfg -c "adapter_khz 10; shutdown" || echo "status: $?"
Open On-Chip Debugger 0.9.0-dev-00357-g09ca5af (2015-03-26-16:51)
...
adapter speed: 10 kHz
shutdown command invoked
status: 1
And finally ...
$ openocd -f interface/dummy.cfg -c "adapter_khz 10; shutdown" || echo "status:
$?"
... Also ends with 'status: 1'
Normally I would run something like ...
'init; reset halt; wait_halt; flash write_image erase unlock
"output/fileToFlash.elf"; reset run; sleep 10; shutdown', but reducing the
commands to just 'init; shutdown' still causes exit status 1 to be returned. I
reduced the test to use 'adapter_khz 10' to make the output shorter.
I've (almost daily) built the latest version of OpenOCD, to make sure that the
release version will build fine for PowerPC based Macs, but as far as I
remember, this problem has been there for a few weeks.
Please try it and see if you get the same results.
Love
Jens
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel