Dangerous Prototypes

Other projects => Past projects => CPLD programmable logic => Topic started by: ian on February 18, 2011, 05:45:24 pm

Title: Assembling the CPLD breakouts
Post by: ian on February 18, 2011, 05:45:24 pm
[quote author="Sjaak"]
The cplds and pcbs did arrive yesterday. I did solder the xc9572xl board and tried it. It didn't get recognized :(

I did notice the xsvf player did not work when it first connected (waiting for response), the consecutive times it works fine (didn't find a target though with me :))
[/quote]

Did the voltages look ok?
Did you put a jumper on VIO to power the IO pins?
Also, do not populate C7 unless you know your vreg will like it.

How is it powered? You can use 3v3 to the VTG pin,or 5v0 to the V+ pin if the voltage regulator is populated.

I'm not sure about the firmware. Make sure you're using the latest versions I just posted. I'll give it a test when I get back to the PC. It has been rock solid for me.
Title: Re: Assembling the CPLD breakouts
Post by: ian on February 18, 2011, 06:54:25 pm
Code: [Select]
E:Workbus-piratetrunkscriptsBPXSVFPlayerbinRelease>bpxsvfplayer -p COM5 -
f c:svfxc95prog.xsvf
-----------------------------------------------------------------------------

 BusPirate XSVF Player V.01
 http://www.dangerousprototypes.com

-----------------------------------------------------------------------------
File is 53289 bytes, read 53289 bytes Opening Bus Pirate on COM5 at 115200bps, u
sing XSVF file c:svfxc95prog.xsvf
 Entering XSVF Player Mode
 Waiting for first data request...ok
Sending 4096 Bytes (1000)...ok
Sending 4096 Bytes (2000)...ok
Sending 4096 Bytes (3000)...ok
Sending 4096 Bytes (4000)...ok
Sending 4096 Bytes (5000)...ok
Sending 4096 Bytes (6000)...ok
Sending 4096 Bytes (7000)...ok
Sending 4096 Bytes (8000)...ok
Sending 4096 Bytes (9000)...ok
Sending 4096 Bytes (A000)...ok
Sending 4096 Bytes (B000)...ok
Sending 4096 Bytes (C000)...ok
Sending 4096 Bytes (D000)...ok
Sending 41 Bytes (D029)...ok
End of operation reply 00
  Success!
 Thank you for Playing! :-)


E:Workbus-piratetrunkscriptsBPXSVFPlayerbinRelease>

Went ok the first try, hum. Maybe fixing the other issue first will help.
Title: Re: Assembling the CPLD breakouts
Post by: Sjaak on February 19, 2011, 02:24:17 pm
I do power it with the Buspirate and connected it to the Vtg pin directly. THe remainig pins are connected like on the wiki. I even tried to switch miso and mosi. I suspect a bad soldering somewhere, will take a better look this afternoon (by daylight :))

Ow I did use a jumper :)
Title: Re: Assembling the CPLD breakouts
Post by: Sjaak on February 19, 2011, 03:59:57 pm
As suspected it was a bad solder joint. I whipped the prototype up at night because I was very excited about it, only it is too dark to spot bad solder joints ;) I did remove the cpld and resolder it.

I still got the issue with the xsvfplayer for buspirate:

Code: [Select]
D:the-bus-piratexsvf-playertestdir>BPXSVFplayer.exe -p com7 -s  115200 -f LED
inv.xsvf
-----------------------------------------------------------------------------

 BusPirate XSVF Player V.01
 http://www.dangerousprototypes.com

-----------------------------------------------------------------------------
File is 53289 bytes, read 53289 bytes Opening Bus Pirate on com7 at 115200bps, u
sing XSVF file LEDinv.xsvf
 Entering XSVF Player Mode
 Waiting for first data request...^C
D:the-bus-piratexsvf-playertestdir>BPXSVFplayer.exe -p com7 -s  115200 -f LED
inv.xsvf
-----------------------------------------------------------------------------

 BusPirate XSVF Player V.01
 http://www.dangerousprototypes.com

-----------------------------------------------------------------------------
File is 53289 bytes, read 53289 bytes Opening Bus Pirate on com7 at 115200bps, u
sing XSVF file LEDinv.xsvf
 Entering XSVF Player Mode
 Waiting for first data request...ok
Sending 4096 Bytes (1000)...ok
Sending 4096 Bytes (2000)...ok
Sending 4096 Bytes (3000)...ok
Sending 4096 Bytes (4000)...ok
Sending 4096 Bytes (5000)...ok
Sending 4096 Bytes (6000)...ok
Sending 4096 Bytes (7000)...ok
Sending 4096 Bytes (8000)...ok
Sending 4096 Bytes (9000)...ok
Sending 4096 Bytes (A000)...ok
Sending 4096 Bytes (B000)...ok
Sending 4096 Bytes (C000)...ok
Sending 4096 Bytes (D000)...ok
Sending 41 Bytes (D029)...ok
End of operation reply 00
  Success!
 Thank you for Playing! :-)


D:the-bus-piratexsvf-playertestdir>

If I first run the program, it seem to wait forever. The second time it works ok.
Title: Re: Assembling the CPLD breakouts
Post by: ian on February 19, 2011, 04:37:49 pm
So you got it working? Great to hear. do you have any designs planned? There are a bunch of examples on the wiki unser cpld turorials, and the files are in dp svn. Mcz made a buch of isuper cool device demos that are there too, like 595 and a pwm. There is alos a link to a tiny cpu that fits in 32 macrocells.

Try it without the speed maybe, i have never used the speed setting. Also is there a space in ledinv? Maybe that is causing an issue. It would be good to squash this bug before launch because i think most people will probably program with the bus pirate at least at first.
Title: Re: Assembling the CPLD breakouts
Post by: Sjaak on February 19, 2011, 07:00:17 pm
[quote author="ian"]So you got it working? Great to hear. do you have any designs planned? There are a bunch of examples on the wiki unser cpld turorials, and the files are in dp svn. Mcz made a buch of isuper cool device demos that are there too, like 595 and a pwm. There is alos a link to a tiny cpu that fits in 32 macrocells.
[/quote]

no designs yet. first need to check the examples out. me latest experience with programmable logic dates almost 2 decades ago.. :)

[quote author="ian"]
Try it without the speed maybe, i have never used the speed setting. Also is there a space in ledinv? Maybe that is causing an issue. It would be good to squash this bug before launch because i think most people will probably program with the bus pirate at least at first.[/quote]

There isn't a space at the end. I just copied the contents of a cmd box. It happens to wrap there. I found what the problem was. I happen to leave the program jumper on the buspirate which made it miss a couple of bytes and mess up the communications. :)

( ! ) 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.01032075576session_write_close ( )...(null):0
20.01062207168ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01062207944Database_MySQL->query( ).../DatabaseHandler.php:119
40.05622346680Database_MySQL->error( ).../Db-mysql.class.php:273