Saturday, March 09, 2013
GuzuntyPi loading troubleshooting notes
I checked the wiring and found that I forgot to connected GuzuntyPi's 3V3 pin to RPi's 3V3 pin. So there was no power to CPLD. I added the 3V3 to 3V3 connection, but still got the loading error TDO mistmatch.
I check again and found that CPLD still got no power, and the reason is that I wrongly assumed that GuzuntyPi would by default connect all the ground pins. Of course GuzuntyPi should not have done it, because this is already done by RPi. Anyway, I checked that GuzuntyPi uses RPi's P1-06 as ground. So I shifted the GuzuntyPi's ground wire to P1-06
Then I tried to load again. This time I did not get the error message immediately and nothing happened and I thought the loader is loading and should say OK after 45 seconds as mentioned in the guide. But after perhaps more than 45 seconds, I got the following error message.
pi@raspberrypi ~/Guzunty/Pi/src/gz_test $ sudo gz_load gz_test.xsvf
Guzunty loader v5.01, portions courtesy Xilinx, Inc.
XSVF file = gz_test.xsvf
ERROR: TDO mismatch and exceeded max retries
ERROR at or near XSVF command #48. See line #48 in the XSVF ASCII file.
ERROR: TDO mismatch and exceeded max retriesExecution Time = 0.160 seconds
I noticed that this time the error was at or near XSVF command #48, instead of #8. So I made some improvement at least.
.END
*** Screen log ***
login as: pi
pi@192.168.1.53's password:
Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l
...
Last login: Sat Mar 9 05:16:27 2013 from tlfongpc01.zyxel.com
pi@raspberrypi ~ $ ls
bcm2835-1.17 fpl426.py python_programs scripts
bcm2835-1.17 (1).tar.gz Guzunty quick2wire src
berryio_install.sh mcp23008 rasp_control tight_vnc
b.tar mp3 RPi.GPIO-0.5.0a wiringPi
Desktop py-spidev RPi.GPIO-0.5.0a.tar.gz
Documents python_games Scratch
pi@raspberrypi ~ $ cd Guzunty
pi@raspberrypi ~/Guzunty $ ls
Pi
pi@raspberrypi ~/Guzunty $ cd Pi
pi@raspberrypi ~/Guzunty/Pi $ ls
bill of materials design files README.md schematic src
pi@raspberrypi ~/Guzunty/Pi $ cd src
pi@raspberrypi ~/Guzunty/Pi/src $ ls
gz_16i8o gz_24i1O gz_25i gz_4p8o8i gz_arduino gzlib gz_test
gz_16o8i gz_24o1I gz_25o gz_8p8i gz_led_driver gz_load
pi@raspberrypi ~/Guzunty/Pi/src $ cd gz_test
pi@raspberrypi ~/Guzunty/Pi/src/gz_test $ ls
gz_test gz_test.rpt gz_test.vhd Makefile
gz_test.c gz_test.ucf gz_test.xsvf
pi@raspberrypi ~/Guzunty/Pi/src/gz_test $ sudo gz_load gz_test.xsvf
Guzunty loader v5.01, portions courtesy Xilinx, Inc.
XSVF file = gz_test.xsvf
ERROR: TDO mismatch and exceeded max retries
ERROR at or near XSVF command #48. See line #48 in the XSVF ASCII file.
ERROR: TDO mismatch and exceeded max retriesExecution Time = 0.150 seconds
pi@raspberrypi ~/Guzunty/Pi/src/gz_test $ sudo gz_load gz_test.xsvf
Guzunty loader v5.01, portions courtesy Xilinx, Inc.
XSVF file = gz_test.xsvf
ERROR: TDO mismatch and exceeded max retries
ERROR at or near XSVF command #48. See line #48 in the XSVF ASCII file.
ERROR: TDO mismatch and exceeded max retriesExecution Time = 0.160 seconds
pi@raspberrypi ~/Guzunty/Pi/src/gz_test $ sudo gz_load gz_test.xsvf
Guzunty loader v5.01, portions courtesy Xilinx, Inc.
XSVF file = gz_test.xsvf
ERROR: TDO mismatch and exceeded max retries
ERROR at or near XSVF command #8. See line #8 in the XSVF ASCII file.
ERROR: TDO mismatch and exceeded max retriesExecution Time = 0.060 seconds
pi@raspberrypi ~/Guzunty/Pi/src/gz_test $ sudo gz_load gz_test.xsvf
Guzunty loader v5.01, portions courtesy Xilinx, Inc.
XSVF file = gz_test.xsvf
ERROR: TDO mismatch and exceeded max retries
ERROR at or near XSVF command #48. See line #48 in the XSVF ASCII file.
ERROR: TDO mismatch and exceeded max retriesExecution Time = 0.150 seconds
pi@raspberrypi ~/Guzunty/Pi/src/gz_test $ date
Sat Mar 9 06:12:28 UTC 2013
pi@raspberrypi ~/Guzunty/Pi/src/gz_test $
.END
No comments:
Post a Comment