Closed rei-vilo closed 9 years ago
I'd like to chime in and say that OpenOCD doesn't work at all on my desktop, despite hours of debugging - no matter what I do, it just won't connect. If OpenOCD were made the only option, people like me would be stuck using older releases.
There are 2 commits currently available in the OpenOCD gerrit review system that add support for this:
I have successfully used this patch with bleeding edge git version of OpenOCD. To get this to work: 1: git clone git://git.code.sf.net/p/openocd/code openocd-code 2: Apply the patches mentioned above. 3: cd openocd-code 4: ./bootstrap 5: ./configure --enable-maintainer-mode --enable-ti-icdi --prefix=<wherever you want this to be installed e.g. --prefix=/opt/openocd> 6: make 7: sudo make install
The request for merge has been denied by the OpenOCD maintainers since they do not see a reason for adding another file. Instead they have asked the author to incorporate the change into the existing flash driver (stellaris.c).
Using openocd
to upload a sketck works very well.
openocd -f board/ek-lm4f120xl.cfg -c "Builds/embedXcode.bin verify reset"
Open On-Chip Debugger 0.9.0-dev-00186-g30203b3 (2014-11-16-21:39) Licensed under GNU GPL v2 For bug reports, read http://openocd.sourceforge.net/doc/doxygen/bugs.html Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD adapter speed: 500 kHz Info : clock speed 500 kHz Info : ICDI Firmware version: 9270 Info : lm4f120h5qr.cpu: hardware has 6 breakpoints, 4 watchpoints adapter speed: 500 kHz target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x00000500 msp: 0x20008000 \ Programming Started auto erase enabled target state: halted target halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x20000042 msp: 0x20008000 wrote 3072 bytes from file Builds/embedXcode.bin in 0.340555s (8.809 KiB/s) \ Programming Finished \ Verify Started target state: halted target halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x2000002e msp: 0x20008000 verified 2324 bytes in 0.152761s (14.857 KiB/s) \ Verified OK \ Resetting Target ** adapter speed: 500 kHz shutdown command invoked
Obviously,
openocd
should have been installed with the correct parameters as stated in the previous post,Builds/embedXcode.bin
should be adapted to the specific case.
From #270 7 months ago:
Is lm4flash to be replaced by OpenOCD?
Release 12 still has lm4flash.