|
From: Brendan Dolan-G. <bre...@ga...> - 2014-02-12 01:45:18
|
Hi,
I'm trying to use OpenOCD to talk to a Linksys WRT54GL via a
Flyswatter2. OpenOCD correctly reads the JTAG ID of the device
(0x0535217f), but I can't seem to get it to halt the target. Just
issuing "halt" causes the device to reboot. A "reset halt" doesn't
reboot the device, but it times out. Here's the OpenOCD output when
starting it with "sudo src/openocd -s tcl -f interface/flyswatter2.cfg
-f target/bcm5352e.cfg":
=== BEGIN OPENOCD OUTPUT ===
$ telnet localhost 4444
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> halt
target state: halted
target halted in MIPS32 mode due to debug-request, pc: 0x00000000
> targets
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* bcm5352e.cpu mips_m4k little bcm5352e.cpu running
> reset halt
JTAG tap: bcm5352e.cpu tap/device found: 0x0535217f (mfg: 0x0bf, part:
0x5352, ver: 0x0)
Halt timed out, wake up GDB.
timed out while waiting for target halted
TARGET: bcm5352e.cpu - Not halted
in procedure 'reset'
>
=== END OPENOCD OUTPUT ===
Any ideas? My config files are pasted below.
Thanks,
Brendan
=== BEGIN flyswatter2.cfg ===
#
# TinCanTools Flyswatter 2
#
# http://www.tincantools.com/product.php?productid=16153
#
interface ft2232
ft2232_device_desc "Flyswatter2"
ft2232_layout "flyswatter2"
ft2232_vid_pid 0x0403 0x6010
adapter_khz 6000
=== END flyswatter2.cfg ===
=== BEGIN bcm5352e.cfg ===
set _CHIPNAME bcm5352e
set _CPUID 0x0535217f
jtag newtap $_CHIPNAME cpu -irlen 8 -ircapture 0x1 -irmask 0x1f
-expected-id $_CPUID
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME mips_m4k -endian little -chain-position $_TARGETNAME
== END bcm5352e.cfg ===
|