Debug Board JTAG Programming with openocd

Kyle Bassett kylebassett at gmail.com
Tue Aug 14 06:48:42 CEST 2007


I have been unable to coerce my Neo to charge batteries, so I have a feeling
it has to do with the uboot image I flashed.  Should I manually charge the
batteries some other way? or continue trying to reflash the original uboot
revision?  (Can you even use the debug board if the battery is dead?)

My current uboot revision:
u-boot-gta01bv4-r11_e80955f07de03fef0196353e77534b2300193c1c_0_2348.bin

What I am trying to do right now is get up and running with openocd, but I
cannot get around this one error:

# openocd -f /etc/openocd/openocd.cfg
Info:    openocd.c:84 main(): Open On-Chip Debugger (2007-01-31 12:00 CET)
Error:   jtag.c:1181 jtag_examine_chain(): JTAG communication failure, check
connection, JTAG interface, target power etc.

I know this means that it has found the debug board, but I am unsure what I
should do to initialize the phone.  (Simple as power?)

I have my Neo wired up to the debug board, (2.7v) dead battery inside.



Here are the steps I used to get where I am on Debian Etch:
---------------------------------------------------------------------------------------------------------
moved 099_neo1973_debugboard.rules to /etc/udev/rules.d

compiled/installed libusb-0.1.12
compiled/installed libftdi-0.10

add file usr-lib.conf to /etc/ld.so.conf.d/
insert line /usr/local/lib
run ldconfig


compiled/installed openocd from svn:
svn co -r 137 http://svn.berlios.de/svnroot/repos/openocd/trunk openocd_137
./bootstrap
./configure --enable-parport_ppdev --enable-ft2232_libftdi
make; su; make install


made /etc/openocd/openocd.cfg with:
telnet_port 4444
gdb_port 3333
interface ft2232
jtag_speed 0
ft2232_vid_pid 0x1457 0x5118
ft2232_layout "jtagkey"
reset_config trst_and_srst
jtag_device 4 0x1 0xf 0xe
daemon_startup attach
target arm920t little reset_run 0 arm920t
working_area 0 0x200000 0x4000 backup
run_and_halt_time 0 5000
ft2232_device_desc "Debug Board for Neo1973"

---------------------------------------------------------------------------------------------------------

Some information I grabbed from here:
http://wiki.openmoko.org/wiki/Debug_Board
http://wiki.openmoko.org/wiki/OpenOCD#OpenOCD_and_Debug_Board
http://svn.openmoko.org/developers/werner/notes/openocd


Thanks,

Kyle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/community/attachments/20070814/f6ae72dd/attachment.htm 


More information about the community mailing list