Dangerous Prototypes

Other projects => Past projects => CPLD programmable logic => Topic started by: PureBluff on November 01, 2011, 02:56:06 am

Title: CoolRunner-II (xc2c64a) XSVF / BusPirate Issues.
Post by: PureBluff on November 01, 2011, 02:56:06 am
Hi all,

Just got my Bus Pirate today.

It's a sparkfun one but it seems to have com with 4.x bootloader as ds30 loader connected fine but PIC24F wouldn't.

With this in mind, I flashed bpv3-xsvf-vb to it, removed the jumper and cycled the usb power to the device.

I then created my .xsvf in Xilinx Lab-Tools.

I wired up my BusPirate to the CoolRunner-II using this install which I believe to be correct ?

[link] i. imgur . com / XjRlQl . png

I then use the command;

bpxsvfplayer -p com14 -f filepath.xsvf

To which I get the following output.

Quote
BusPirate XSVF Player V.01
-----------------------------------------------------------------------------
File is 22846 bytes, read 22846 bytes Opening Bus Pirate on com3 at 115200bps, u
sing XSVF file xc2cprog.xsvf
 Entering XSVF Player Mode
 Waiting for first data request...ok
Sending 4096 Bytes (1000)...ok
End of operation reply 02
  Device did not respond as expected: XSVF_ERROR_TDOMISMATCH
 Thank you for Playing! :-)

Can anyone see any glaringly obvious mistakes ? Something I as a noob have overlooked? Or misunderstood?

If not, does anyone have any suggestions?

Running WinXP SP2 (x86) if it matters, USB2Serial drivers are installed.

Many thanks for looking
Title: Re: CoolRunner-II (xc2c64a) XSVF / BusPirate Issues.
Post by: PureBluff on November 01, 2011, 02:57:22 am
** The com3 in the log as I generated the log on another machine **
Title: Re: CoolRunner-II (xc2c64a) XSVF / BusPirate Issues.
Post by: ian on November 01, 2011, 02:09:31 pm
It looks like the XSVF firmware is loaded and responding ok.

Are you able to attach the image to the post?

Maybe double check the directory you found your .jed file in, ISE sometimes saves old directories.

Here's our guide on XSVF creation:
http://dangerousprototypes.com/docs/Exp ... SE_Webpack (http://dangerousprototypes.com/docs/Export_%28X%29SVF_from_Xilinx_ISE_Webpack)
Title: Re: CoolRunner-II (xc2c64a) XSVF / BusPirate Issues.
Post by: PureBluff on November 01, 2011, 11:27:35 pm
Hey, thanks for the reply.

The cpld was dead, hooked up another and it worked perectly.

Nice work!
Title: Re: CoolRunner-II (xc2c64a) XSVF / BusPirate Issues.
Post by: ian on November 02, 2011, 08:30:28 am
Thanks for the update, I'm glad you got it going.
Title: Re: CoolRunner-II (xc2c64a) XSVF / BusPirate Issues.
Post by: GentlemanEngineer on March 25, 2012, 06:11:17 pm
Frightfully sorry for playing Lazarus on this old thread. However, I am experiencing the exact same issue. Unfortunately, I do not have a second CPLD Board to test, as I only ordered the one.

Is anyone able to suggest any diagnostics to attempt prior to assuming the CPLD Board was DOA?
Title: Re: CoolRunner-II (xc2c64a) XSVF / BusPirate Issues.
Post by: ian on March 26, 2012, 09:31:43 am
When you power it up (at 3.3volts) does the manufacturing self-test that shipped on the chip work? LED1 should light, and when you push the button LED1 should go off and LED2 should turn on.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01162072016session_write_close ( )...(null):0
20.01202203608ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01202204384Database_MySQL->query( ).../DatabaseHandler.php:119
40.06772343120Database_MySQL->error( ).../Db-mysql.class.php:273