CPLD flashing within HxC USB pcb?

General discussion forum - for all that doesn't fit in any other category.
Post Reply
petersieg
Posts: 51
Joined: Fri Jun 06, 2008 9:39 am

CPLD flashing within HxC USB pcb?

Post by petersieg »

@Jeff: You mentioned in forum64, that the pcb has 4 test points.. and that you don't have a separate cpld programmer..?

Can one flash/programm the cpld inside the HxC pcb? With all the other parts in place or doesn't matter? I assume, power comes from the USB connector..

Could you supply some kind of scematic on how to connect a JTAG plug?
What software you use to programm the device? Which JTAG dongle..?

"I am looking on a 'howto' programm your cpld with HxC" ;-)

Peter
CrazyIcecap
Posts: 43
Joined: Wed Sep 24, 2008 2:38 pm
Contact:

Post by CrazyIcecap »

Look at the schematics from the PCB archive. There are 6 test points. 2 of them (J9 & J10, for VCC and GND) are next to the Floppy connector, 2 other ( J8 & J11) are between CPLD and RAM and the last 2 (J12 & J7) are between CPLD and Oscillator.
C21 is the optional capacitor for JTAG-VCC, if i read the schematics right.
Jeff
Site Admin
Posts: 8247
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

Yes you can program the cpld on the hxc floppy without problem:

for this you need :

-> a byteblaster compatible programmer: this is a very simple programmer using the pc parrallel port.
You can find more informations about this programmer here :
http://opencollector.org/history/freeco ... ter%21.htm
(mine programmer are only 4 wires on the // port ;-) )

-> Programmer software : Quartus II or the standalone programmer software :
https://www.altera.com/support/software ... rammer.jsp

-> a pc with a // port.


After this, plug the programmer to the board like this:
J10 (GND) -> GND
J12(JTAG_TCK) -> TCK
J7 (JTAG_TDO) -> TDO
J11(JTAG_TMS) -> TMS
J8(JTAG_TDI) -> TDI
if your byteblaster need vcc -> J9 (VCC) -> VCC

C21 are useless for jtag programming.
petersieg
Posts: 51
Joined: Fri Jun 06, 2008 9:39 am

Post by petersieg »

Hi Jeff.. Thanks!

Does it make any difference if all the chips/resistors/capacitors/etc. are soldered already or if the pcb is still empty..? I assume I need it least some kind if +5V supply..? So USB-Plug should be soldered und connected to a PC that is powered..?

4 wires.. (=TCK,TDI,TDO,TMS..) do you have nStatus connected..? If so.. where..?

Peter
Jeff
Site Admin
Posts: 8247
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

petersieg wrote:Hi Jeff.. Thanks!

Does it make any difference if all the chips/resistors/capacitors/etc. are soldered already or if the pcb is still empty..? I assume I need it least some kind if +5V supply..? So USB-Plug should be soldered und connected to a PC that is powered..?

4 wires.. (=TCK,TDI,TDO,TMS..) do you have nStatus connected..? If so.. where..?

Peter
Yes you can power the board through the usb (with the same pc). CPLD decoupling capacitors are recommended.

leave nStatus unconnected, this wire is useless in jtag mode.
petersieg
Posts: 51
Joined: Fri Jun 06, 2008 9:39 am

Post by petersieg »

Hi Jeff
I am having problem flashing with the above simple programmer..

My connection is:
PIN 25-pol Male - Signal - J-Point - Color
2 - TCK - J12 -yellow
3 - TMS - J11 - green
8 - TDI - J8 - red/orange
11 - TDO -J7 - blue
25 - GND - J10 - black

7 ---+
10--+ bridged

9 ---+
12--+ bridged

+5V is supplied to J9 from external power supply..

Maybe you can give me a hint. I also link here 2 pictures..
Image
Image

Peter
Jeff
Site Admin
Posts: 8247
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

What's the problem exactly ? what is the error in the software ?

I recommend you to power the cpld with an usb cable connected to the same pc used to flash the cpld. It's more secure for the cpld and the pc !

try also to add the 33ohms resistors.
Post Reply