I need some help.
I've almost gotten to a point where I'll just bruteforce the thing to get it to work but there are so many different configurations, my head is about to explode. I'm in the process of writing this up for my site but damned if I can get it to work right. Of course credit is given.
The issue is that I can't get the JTAG to work, and the wiggler instructions are confusing me.
I'm using a "generic" wiggler from TIAO and it is configured as follows. I don't know the difference between TRST, SRST nRSt, etc.
The generic wiggler has a row designated PDB (D1-D17), Bin (A1-A8), Bout (Y1-Y8), then the Dockstar's port I'm going to call X(1-10)
$this->bbcode_second_pass_code('', '
<-----Wiggler Board------->|<---Dockstar
Dsub |
(Header PDB) (Bin)(Bout) |(Dockstar)
D1 - NC |
D2 - Orange - A1=Y1 - Orange - X3
D3 - Green - A2=Y2 - Green - X4
D4 - Yellow - A3=Y3 - Yellow - X5
D5 - Red - A4=Y4 - Red - X2
D6 - White - A5=Y5 - White - X7
D7 - Purple - A6=Y6 - Purple - NC
|
D11 - Blue - Y8=A8 - Blue - X6
|
')
The colors above are in reference to the TAIO Wiki site, specifically this image:
http://www.tiaowiki.com/w/Image:Univers ... er.597.jpgI have attached a lead from the GND of the Dockstar, to the Wiggler GND, and to my serial CA42 GND to make sure levels are the same. From the wiggler (not connected to PC to the CA42's USB shield, I have continuity across all four devices so it's not a ground issue. (Wiggler GND to Dockstar USB port shield to GND pin on Dockstar header to shield of USB / PC)
When I start OpenOCD, I can run init, but that's about it. Trying sheevaplug_init gives errors and it has never been able to find the nand when I do a nand probe 0 per the instructions here:
http://Arch Linux ARM.com/index.php5?title=Ha ... up_WindowsHere is the output of what I'm getting. OpenOCD telnet session:
$this->bbcode_second_pass_code('', '
Open On-Chip Debugger
> init
> halt
Target not examined yet
Command handler execution failed
in procedure 'halt' called at file "command.c", line 650
called at file "command.c", line 361
> halt
Target not examined yet
Command handler execution failed
in procedure 'halt' called at file "command.c", line 650
called at file "command.c", line 361
> sheevaplug init
Runtime error, file "command.c", line 650:
invalid command name "sheevaplug"
> sheevaplug_init
Embedded ICE version 0
feroceon.cpu: hardware has 1 breakpoint/watchpoint unit
unexpected Feroceon EICE version signature
target was in unknown state when halt was requested
Halt timed out, wake up GDB.
timed out while waiting for target halted
Command handler execution failed
in procedure 'sheevaplug_init' called at file "command.c", line 650
in procedure 'wait_halt' called at file "C:\Program Files\OpenOCD\0.4.0\bin\../board/dockstar.cfg", line 32
called at file "command.c", line 361
> nand probe 0
NAND flash access requires halted target
NAND flash access requires halted target
NAND flash access requires halted target
NAND flash access requires halted target
NAND flash access requires halted target
NAND flash access requires halted target
unknown NAND flash device found, manufacturer id: 0x00 device id: 0x00
probing failed for NAND flash device
> halt
Halt timed out, wake up GDB.
timed out while waiting for target halted
Command handler execution failed
in procedure 'halt' called at file "command.c", line 650
called at file "command.c", line 361
>
')
When I start out with OpenOCD (commandline) it gives me the following errors.
$this->bbcode_second_pass_code('', '
C:\Documents and Settings\Administrator>openocd -f board/dockstar.cfg
Open On-Chip Debugger 0.4.0 (2010-02-22-19:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
parport port = 0x378
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
jtag_nsrst_delay: 200
jtag_ntrst_delay: 200
Warn : use 'feroceon.cpu' as target identifier, not '0'
Info : clock speed 500 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Command handler execution failed
Warn : jtag initialization failed; try 'jtag init' again.
Info : accepting 'telnet' connection from 0
Info : Embedded ICE version 0
Info : feroceon.cpu: hardware has 1 breakpoint/watchpoint unit
Error: unexpected Feroceon EICE version signature
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted
Command handler execution failed
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted
Command handler execution failed
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
error: -100
')
Also, what in the world is the pinout of the header on the dockstar itself? Based on what I've seen here, it's along the lines of:
Pin 1 - Unknown - Here be dragons.
Pin 2 - RSET (nRST or sRST? what is the difference?)
Pin 3 - TDI
Pin 4 - TMS
Pin 5 - TCLK
Pin 6 - TDO
Pin 7 - SRST or nRST?
Pin 8 - RxD (Serial)
Pin 9 - TxD (Serial)
Pin 10 - Vss (GND)
If I can get a clarification on what I'm botching up here, I can complete my post and finally get this thing working once and for all. Unfortunately, I did something stupid and typed in "nand erase" at the CE> prompt and when I desperately tried to recover the dd image of the bootloader (didn't know about the checksum that prevents you from doing that), the dockstar went nonresponsive.
I would greatly appreciate any help and I apologize for the length of this post. I really want to get this solved and want to make sure I'm not leaving an important piece of information behind.
Thank you.