using openocd

Lynn Nguyen lynn.mesl at gmail.com
Mon Sep 1 20:33:02 CEST 2008


Why would I want to do that to the debug board?
http://wiki.openmoko.org/wiki/Debug_Board_v3 . If the usb id is
0403:6010 then its wrong isn't it?

Also I don't understand this section of the wiki page:
http://wiki.openmoko.org/wiki/OpenOCD#Known_Bugs_and_Troubleshooting

 Did you turn it on ?

An easily made but devastating mistake is to forget to actually activate the
CPU. Just connecting power is not enough ! Press and hold the power button
until the boot loader does its count-down, or, in case there is no runnable
boot loader, the CPU keeps itself busy.

is the 'it' this part referring to the openmoko? I mean, isn't the whole
point of a bricked openmoko the fact that it can't turn on? How am I
supposed to activate the CPU if it won't turn on at all? I know the battery
is fully charged because I checked the voltage.

this is the openocd.cfg i am using:

telnet port 4444
gdb_port 3333

# interface
interface ft2232
jtag_speed 8
ft2232_device_desc "Debug Board for Neo1973"
ft2232_layout "jtagkey"
ft2232_vid_pid 0x1457 0x5118
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

How do I check my debug board's uart console? I can't remember how to do it
but I'm pretty sure I was able to screen onto it once.

Actually maybe it is something with my debug board, I looked in the logs and
saw this:

[  459.596147] usb 3-1.3: new full speed USB device using uhci_hcd and
address 27
[  459.744465] usb 3-1.3: device not accepting address 27, error -71

Do you know what to make of this error? Google search finds nothing =/.

Lynn
On Mon, Sep 1, 2008 at 12:43 AM, Neng-Yu Tu (Tony Tu) <tony at openmoko.com>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Lynn-
>
> Lynn Nguyen ??:
> > Yeah it's loading the correct openocd.cfg file. I even added random
> > commands to it and i saw those commands in the error messages. I even
> > used -f to be sure.
> >
>
>
> * Could you check the .cfg file is comes with, it should called
> openocd-debugv2.cfg :
>
> 1. ft2232_vid_pid 0x1457 0x5118
>
> 2. And adjust jtag_speed to higher number (4 or 8, default is 0)
>
> * And is your debug board UART (terminal console) is working?
>
> If still not working, you might could erase the EEPROM content in the
> debug board again, return the default USB ID 0403 6010. They see if the
> UART and openocd could work.
>
> Regards,
>
> - --
> Neng-Yu Tu (Tony Tu)
> Openmoko, Inc.
> Support.
>
> Some questions could be answered by reference following link:
>
> Wiki - http://wiki.openmoko.org
> Download - http://downloads.openmoko.org
>
> Freerunner Introduction -
> http://wiki.openmoko.org/wiki/Getting_Started_with_your_Neo_FreeRunner
>
>
>
> >> I was wondering if anyone was using the Neo1973 (GTA01v4) with Debug
> >> board v3. I used the openocd.cfg available on the wiki and I get this
> >> problem:
> >> Info:    openocd.c:82 main(): Open On-Chip Debugger (2006-08-01
> > 12:00 CEST)
> >> Info:    configuration.c:50 configuration_output_handler(): Command
> >> ft2232_device_desc not found
> >> Info:    configuration.c:50 configuration_output_handler(): Command
> >> ft2232_layout not found
> >> Info:    configuration.c:50 configuration_output_handler(): Command
> >> ft2232_vid_pid not found
> >> Error:   jtag.c:1219 jtag_init(): No valid jtag interface found
> > (ft2232)
> >
> >> It seems like openocd is having some trouble with ft2232 because I
> > don't
> >> see anything wrong with those commands.
> >
> >
> > Does your openocd load neo1973 specific config? like tmp/openocd -f
> > tmp/openocd-debugv2.cfg
> >
> > Usually it is because your USB vid/pid setting is not correct in the
> > config file(load the wrong config file)
> >
> > Hope this helps.
> >
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAki7nRcACgkQmV6sZhhBn2/jIACgjEh/KVZXXdhD4sLyZh17d9gA
> DG4AnAmOZwoBDKSqNn3mua2WQnvi9xCp
> =wz/W
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/support/attachments/20080901/ad543b94/attachment-0001.htm 


More information about the support mailing list