Dangerous Prototypes

Other projects => Past projects => CPLD programmable logic => Topic started by: sowbug on January 25, 2012, 07:02:04 am

Title: Programming XC9572 with BPv4?
Post by: sowbug on January 25, 2012, 07:02:04 am
I have an XC9500XL breakout board and a Bus Pirate v4. I'm pretty sure I can't upload the BPv3 CPLD programmer firmware to my v4. What are my options for programming the CPLD?
Title: Re: Programming XC9572 with BPv4?
Post by: ian on January 25, 2012, 08:53:26 am
Hi sowbug,

I'm sorry, the XSVF player used to program the CPLDs is not currently available for the Bus Pirate v4 yet.
Title: Re: Programming XC9572 with BPv4?
Post by: sowbug on January 25, 2012, 10:39:13 pm
[quote author="ian"]I'm sorry, the XSVF player used to program the CPLDs is not currently available for the Bus Pirate v4 yet.[/quote]

Anything the community can do to speed things up? I'm more of an AVR type, but if the effort is on the order of adding jtag.c and xapp058 dependencies to the Makefile and testing, then I could see getting involved.
Title: Re: Programming XC9572 with BPv4?
Post by: ian on January 26, 2012, 08:59:51 am
We have two choices. One it to integrate it into the main Bus Pirate firmware as an optional mode. The other is to adapt the xapp058 code to the USB stack on its own for a stand alone. I'm not sure which makes more sense at this time. The eventual goal is for it to be integrated.
Title: Re: Programming XC9572 with BPv4?
Post by: JTR on January 26, 2012, 04:36:37 pm
I just dumped all the jtag files into the BPv4 firmware. It compiled first go because all the goodness was correctly handled in the header files. There is no further intergration with the usb stack required as it is all done in baseIO.

If the serviceuser() function is replaced with jtag() it may just work as a custom XSVF player. If not it would have to be close to working I would think...

The zip file is here http://http://www.newfoundelectronics.com/JTAG_BPv4_6_1.zip
Title: Re: Programming XC9572 with BPv4?
Post by: ian on January 27, 2012, 12:24:12 pm
Thanks JTR. I will try to roll this into a new release, or add it as a mode to the upcoming firmware release.
Title: Re: Programming XC9572 with BPv4?
Post by: sowbug on February 01, 2012, 03:45:24 am
I'm now able to program my XC9572XL breakout board with an Arduino. I've put the source up on GitHub (http://https://github.com/sowbug/JTAGWhisperer).

I'd have finished it on Saturday, but like a goofball I'd had the board attached to a 5-volt supply, leaving me to question basic truths about software development over the past few days.
Title: Re: Programming XC9572 with BPv4?
Post by: ian on February 01, 2012, 08:19:08 am
Nice work, and thanks for the shout out on you github page.

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