The output after the load command is:
Debug: 380 282648 gdb_server.c:3151 gdb_input_inner(): received packet:
'X8000,0:<binary-data>'
Debug: 381 282649 gdb_server.c:3151 gdb_input_inner(): received packet:
'X8000,64:<binary-data>'
Debug: 382 282649 gdb_server.c:1578 gdb_write_memory_binary_packet(): addr:
0x8000, len: 0x00000064
Debug: 383 282649 target.c:2148 target_write_buffer(): writing buffer of 100
byte at 0x00008000
Debug: 384 282649 arm11.c:918 arm11_write_memory_inner(): ADDR 00008000 SIZE
00000004 COUNT 00000019
Error: 385 282651 arm11_dbgtap.c:623
arm11_run_instr_data_to_core_noack_inner_default(): 15 words out of 25 not
transferred
Debug: 386 282651 gdb_server.c:3151 gdb_input_inner(): received packet:
'X8064,8:<binary-data>'
Debug: 387 282651 gdb_server.c:1397 gdb_error(): Reporting -4 to GDB as generic
error
Debug: 388 282651 gdb_server.c:1578 gdb_write_memory_binary_packet(): addr:
0x8064, len: 0x00000008
Debug: 389 282651 target.c:2148 target_write_buffer(): writing buffer of 8 byte
at 0x00008064
Debug: 390 282651 arm11.c:918 arm11_write_memory_inner(): ADDR 00008064 SIZE
00000004 COUNT 00000002
Error: 391 282652 arm11_dbgtap.c:623
arm11_run_instr_data_to_core_noack_inner_default(): 2 words out of 2 not
transferred
---
** [tickets:#246] load fail olimex arm usb tiny with ftdi**
**Status:** new
**Milestone:** 0.9.0
**Labels:** olimex ftdi load fail
**Created:** Fri Jul 26, 2019 08:58 PM UTC by Christian Tenllado
**Last Updated:** Sat Jul 27, 2019 10:26 AM UTC
**Owner:** nobody
I am using the olimex arm usb tiny h jtag dongle to program a raspberry pi 1
rev B in baremetal. When using the openocd 0.9 vesion, compiled with support
for the ft2232 drivers it works perfectly. However, this driver is no longer
available on openocd 0.10 version. When I try with the ftdi drivers, openocd
connects, gdb connects also with openocd, but when I try to load the binary
into memory the command fails. The error on gdb console is:
(gdb) load
Loading section .text, size 0x64 lma 0x8000
Loading section .data, size 0x8 lma 0x8064
Load failed
The error message in the openocd terminal is:
Error: 15 words out of 25 not transferred
Error: 2 words out of 2 not transferred
The content of my openocd conf file is:
source [find interface/ftdi/olimex-arm-usb-tiny-h.cfg]
adapter_khz 1000
reset_config trst_only
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME raspi
}
if { [info exists CPU_TAPID ] } {
set _CPU_TAPID $CPU_TAPID
} else {
set _CPU_TAPID 0x07b7617F
}
jtag newtap $_CHIPNAME arm -irlen 5 -expected-id $_CPU_TAPID
set _TARGETNAME $_CHIPNAME.arm
target create $_TARGETNAME arm11 -chain-position $_TARGETNAME
$_TARGETNAME configure -event gdb-attach { halt }
I have used both the release openocd 0.10 from debian and the bleading edge
compiled version from the git repo. Both the same behaviour.
---
Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/openocd/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel