Hi,
I have a FTDI minimodule connected to a Raspberry Pi0, setup of which is
now reasonably usable with openocd and gdb. There are a couple of
remaining issues that I would like to get a handle on:
1) The first connect by openocd after a power cycle always initially
results in 7 repeated "Scan chain 7 shifted out unexpected address"
messages. Any subsequent reconnect by openocd, or manual reset of the
board and reconnect doesn't result in the message being generated. i.e.
the initial connect of openocd seems to clear out the issue for
subsequent connects.
2) I had to set "arm11 memwrite burst disable" in order for the gdb load
cmd to work without errors. I tried a range of adapter speeds - 500Khz,
1000KHz, etc to no avail. Why is this required - as I have not seen
other ft2232 rpi configs that use it?
This is with a build of the repository tip, but both issues occur with
0.9 version shipping with Ubuntu that I tested too.
Thanks, Paul.
--
#
http://www.ftdichip.com/Support/Documents/DataSheets/Modules/DS_FT2232H_Mini_Module.pdf
telnet_port 4444
gdb_port 3333
interface ftdi
#ftdi_device_desc "FT2232H MiniModule"
#ftdi_device_desc "FT2232H-56Q MiniModule"
ftdi_vid_pid 0x0403 0x6010
# FT2232H pins: AD0=TCK, AD1=TDI, AD2=TDO, AD3=TMS, AD4=SRST, AD6=TRST, AD7=RTCK
ftdi_layout_init 0x0048 0x004b
ftdi_layout_signal nTRST -data 0x0040
# nTRST nSRST
#ftdi_layout_init 0x0058 0x005b
# nSRST not fuctional with rpi
#ftdi_layout_signal nSRST -data 0x0010
# pi0/1a no ethernet boot delay
#adapter_nsrst_delay 3000
# pi1b/2/3 with ethernet dhcp boot delay
#adapter_nsrst_delay 7000
transport select jtag
adapter_khz 3000
#reset_config trst_and_srst srst_push_pull
reset_config trst_only
#reset_config none
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME rpi
}
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
arm11 memwrite burst disable
init
#reset
rpi.arm configure -event gdb-attach {
echo "GDB attach, halting ARM"
halt
}
------------------------------------------------------------------------------
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