Hi everyone I'm using openOCD with a XDS100v2 adapter to communicate with a Tiva C series evaluation kit (tm4c123gh6pm chip).
My config for flashing the device is the following: ####################################################################### # # Texas Instruments XDS100v2 for TM4C123 # # http://processors.wiki.ti.com/index.php/XDS100#XDS100v2_Features # proc program_device () { halt wait_halt flash write_image erase "gcc/dihi.bin" 0x00000000 bin sleep 10 verify_image "gcc/dihi.bin" 0x00000000 reset run sleep 10 shutdown } set WORKAREASIZE 0x8000 set CHIPNAME tm4c123gh6pm set TARGETNAME $CHIPNAME.cpu interface ftdi ftdi_vid_pid 0x0403 0xa6d0 0x0403 0x6010 ftdi_layout_init 0x0038 0x597b ftdi_layout_signal nTRST -data 0x0010 ftdi_layout_signal nSRST -oe 0x0100 ftdi_layout_signal nEMU_EN -data 0x0020 ftdi_layout_signal nEMU0 -data 0x0040 ftdi_layout_signal nEMU1 -data 0x1000 ftdi_layout_signal PWR_RST -data 0x0800 ftdi_layout_signal LOOPBACK -data 0x4000 adapter_khz 1000 reset_config srst_only jtag newtap $CHIPNAME cpu -expected-id 0x4ba00477 -irlen 4 target create $TARGETNAME cortex_m -chain-position $TARGETNAME $TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $WORKAREASIZE -work-area-backup 0 # flash configuration ... autodetects sizes, autoprobed flash bank $CHIPNAME.flash stellaris 0 0 0 0 $TARGETNAME init; ftdi_set_signal PWR_RST 1; jtag arp_init; halt; reset init; program_device () ####################################################################### When I initially power up the board and the adapter (order doesn't matter) I get the following error: Open On-Chip Debugger 0.8.0-dev-00401-gccb7060 (2017-01-12-16:38) Licensed under GNU GPL v2 For bug reports, read http://openocd.sourceforge.net/doc/doxygen/bugs.html Info : only one transport option; autoselect 'jtag' adapter speed: 1000 kHz srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst Info : clock speed 1000 kHz Error: JTAG scan chain interrogation failed: all ones Error: Check JTAG interface, timings, target power, etc. Error: Trying to use configured scan chain anyway... Error: tm4c123gh6pm.cpu: IR capture error; saw 0x0f not 0x01 Warn : Bypassing JTAG setup events due to errors Warn : Invalid ACK 0x7 in JTAG-DP transaction Info : JTAG tap: tm4c123gh6pm.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4) Error: Target not examined yet Runtime Error: ../openocd/tcl/interface/ftdi/xds100v2_tm4c123_flash.cfg:42: in procedure 'script' at file "embedded:startup.tcl", line 58 in procedure 'halt' called at file "../openocd/tcl/interface/ftdi/xds100v2_tm4c123_flash.cfg", line 42 After that, when I simply restart openOCD once more everything is ok and I get: Open On-Chip Debugger 0.8.0-dev-00401-gccb7060 (2017-01-12-16:38) Licensed under GNU GPL v2 For bug reports, read http://openocd.sourceforge.net/doc/doxygen/bugs.html Info : only one transport option; autoselect 'jtag' adapter speed: 1000 kHz srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst Info : clock speed 1000 kHz Info : JTAG tap: tm4c123gh6pm.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4) Info : tm4c123gh6pm.cpu: hardware has 6 breakpoints, 4 watchpoints Info : JTAG tap: tm4c123gh6pm.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4) target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x61000000 pc: 0x00004c6a msp: 0x20000e00 Info : JTAG tap: tm4c123gh6pm.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4) target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x61000000 pc: 0x00004c6a msp: 0x20000e00 auto erase enabled wrote 31744 bytes from file gcc/dihi.bin in 1.018947s (30.424 KiB/s) verified 31032 bytes in 0.099983s (303.098 KiB/s) Info : JTAG tap: tm4c123gh6pm.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4) target state: halted target halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x2000002e msp: 0x20000e00 shutdown command invoke I'm pretty sure that my configuration is not perfect since I put things together from different examples :-) Since subsequent attempts to flash the board are successful I guess the first try puts the board in a condition which is different to what it is immediately after power up. However, I was not yet able to identify the issue. Maybe someone can see any obvious problems with my configuration or has more experience with the XDS100v2 resp. the tm4c123gh6pm & JTAG connection and could give me a hint? Best regards Dominique btw. I'm writing to the devel mailing list because I've read in the users mailing list that it's not actively reviewed and someone suggested to write to the devel mailing list instead ;-). If that's a problem please let me know! ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
