Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Programming FPGA with ARM7 (JTAG)
PostPosted: Tue Mar 01, 2011 1:23 pm 
Offline

Joined: Fri Aug 13, 2010 11:38 am
Posts: 7
Hi all,

I am googling my ass off, but i'm not having any result yet, so maybe you can help me!

What i'm trying to accomplisch is this:

We developed a board that houses an AT91SAM7S and an FPGA. To update the FPGA's firmware, the bitfile is sent to the AT91 by usb. I want to program the FPGA with this bitfile by JTAG.

Are there any JTAG routines to get me started with?
Thanks in advance!


Top
 Profile  
 
 Post subject: Re: Programming FPGA with ARM7 (JTAG)
PostPosted: Tue Mar 01, 2011 3:26 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
Consult your FPGA vendor or FAE. Get some app notes on programming methods for the FPGA in question.

Do you want the SAM7 to control the JTAG programming, or are you using an external cable/pod? The SAM7 isn't going to be able to "back-drive" it's own JTAG interface, you would need to connect the FPGA's JTAG/programming connector to GPIO pins on the SAM7.


Top
 Profile  
 
 Post subject: Re: Programming FPGA with ARM7 (JTAG)
PostPosted: Wed Mar 02, 2011 10:18 am 
Offline

Joined: Fri Aug 13, 2010 11:38 am
Posts: 7
[quote="CptTitanic"]You would need to connect the FPGA's JTAG/programming connector to GPIO pins on the SAM7.[/quote]

That's indeed how the hardware is designed.


Top
 Profile  
 
 Post subject: Re: Programming FPGA with ARM7 (JTAG)
PostPosted: Tue Mar 15, 2011 12:44 pm 
Offline

Joined: Fri Aug 13, 2010 11:38 am
Posts: 7
Found out some things about DirectC programming the FPGA (it's an Actel ProAsic3), but can't get it to work yet.

Are there any people here who already are into DirectC programming that can provide me some hand here?


Top
 Profile  
 
 Post subject: Re: Programming FPGA with ARM7 (JTAG)
PostPosted: Sat Oct 22, 2011 12:28 pm 
Offline

Joined: Sat Oct 22, 2011 11:18 am
Posts: 1
I have developed code based on "DirectC" and by reading the STAPL file produced by the FPGA design suite to program an Actel A3P250 via GPIO pins on a 9260 (but a pin is a pin). I'm sorry I can't give you any code as the was done for the company I work for.

Basically, I wrote a JTAG pin driver to clock commands and data in and out in the various states. The details are easily seen by reading the DirectC source or looking a the STAPL file. The latter is good as you can see what has to be done in what order. The STAPL doc is freely downloadable (use google).

However, I found that I had to remove a pull up resistor from VPump (pin 106 on the PQ208 A3P250 (wire link or zero ohm R) or the FPGA would not go into programming mode. We also saw quite a high current draw in programming mode so make sure you have enough power to use.

Good Luck.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: