Hi all,
I'm experimentig with the TIVA connected launchpad using a linux PC and a arm-none-eabi-gcc toolchain.
I'm able to build examples and to program the chip using lm4tools, but if try to use openocd (0.7.0) with the config file
# # TI Tiva Launchpad ek-tm4c123gxl Evaluation Kits # # http://www.ti.com/tool/ek-tm4c123gxl # # # NOTE: using the bundled ICDI interface is optional! # This interface is not ftdi based as previous boards were # source [find interface/ti-icdi.cfg] set WORKAREASIZE 0x8000 set CHIPNAME tm4c129ncpdt source [find target/stellaris_icdi.cfg]
I can connect to the board but when i try to load the code i got a memory write failure
$ arm-none-eabi-gdb hello.axf GNU gdb (GNU Tools for ARM Embedded Processors) 7.6.0.20140529-cvs Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-linux-gnu --target=arm-none-eabi". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/giellamo/work/giellamo/TI_stuff/GccMode/examples/boards/ek-tm4c1294xl/hello/gcc/hello.axf...done. (gdb) target extended-remote :3333 Remote debugging using :3333 0x00000000 in g_pfnVectors () (gdb) monitor reset halt target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x00000560 msp: 0x20000204 (gdb) load Loading section .text, size 0xff4 lma 0x0 Start address 0x564, load size 4084 Transfer rate: 8 KB/sec, 1361 bytes/write. (gdb) monitor reset init target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x00000564 msp: 0x20000204 (gdb) c Continuing. Memory write failure!
On OOCD shell
[605] giellamo@dorne: ~/work/giellamo/TI_stuff/openocd/tcl $ sudo openocd --file lm4f.cfg Open On-Chip Debugger 0.7.0 (2013-10-22-08:31) Licensed under GNU GPL v2 For bug reports, read http://openocd.sourceforge.net/doc/doxygen/bugs.html Info : This adapter doesn't support configurable speed Info : ICDI Firmware version: 1224 Info : tm4c129ncpdt.cpu: hardware has 6 breakpoints, 4 watchpoints Info : accepting 'gdb' connection from 3333 Warn : Unknown did0 class Warn : acknowledgment received, but no packet pending undefined debug reason 6 - target needs reset target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x00000560 msp: 0x20000204 Error: memory write failed: 0x7 target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x00000564 msp: 0x20000204 Error: Memory write failure!