• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: What am I doing wrong with openocd on OSX?  (Read 2559 times)
Zectbumo
Newbie
*

Karma: 0
Posts: 5


View Profile
« on: January 23, 2012, 05:33:10 AM »

I am on OS X Lion 10.7.2
I followed the instructions on http://plugcomputer.org/plugwiki/index.php/Serial_terminal
Except that I removed the SheevaPlug JTAGKey FT2232D A section from the FTDI_patch so that openocd can claim the usb device for JTAG use.
I installed openocd with homebrew $ brew install openocd --enable-ft2232_libftdi --enable-usbprog
I extracted the guru installer from http://www.plugcomputer.org/downloads/guru-plug/
To start simple I tried only using the interface/guruplug.cfg:
Code:
$ openocd -s guruplug-installer/openocd -f interface/guruplug.cfg
Open On-Chip Debugger 0.5.0 (2012-01-23-04:23)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
2000 kHz
Info : clock speed 2000 kHz
Warn : There are no enabled taps.  AUTO PROBING MIGHT NOT WORK!!
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: IR capture error at bit 0, saw 0x00 not 0x...3
Warn : Bypassing JTAG setup events due to errors
Warn : gdb services need one or more targets defined

I have confirmed that the serial works via /dev/tty.usbserial-FTT0H1DTB but I can't seem to get the JTAG interface working.

Can anyone please shed some light on these errors? I am not sure what else I can try.
Logged

Zectbumo
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #1 on: January 23, 2012, 04:09:45 PM »

It looks like I got this working.  I tried for hours last night with no success.  This morning I powered the plug up and hooked the USB in and ran openocd and it worked fine.  Maybe it was because I was booted into the OS last night or I needed to reset the plug? Not sure but I now see this:
Info : JTAG tap: feroceon.cpu tap/device found: 0x20a023d3 (mfg: 0x1e9, part: 0x0a02, ver: 0x2)

All I have left is this issue:
Error: No valid NAND flash driver found (0)
and a list of available drivers is shown.

Is this something for me to worry about?
Logged

Zectbumo
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #2 on: January 23, 2012, 06:06:17 PM »

Error: No valid NAND flash driver found (0)

I was able to get rid of the NAND error by changing openocd/board/guruplug.cfg:14 to
nand device 0 orion feroceon.cpu 0xd8000000

It seems that the nand syntax changed in the new openocd.  I am running version 0.5.0.
Logged

Pages: [1]
Print
Jump to: