Hi, I am trying to program Spartan 6 FPGA(6SLX25FTG256) with Jtag HS2 in Ubuntu 14.04. I can see the device with command "sudo djtgcfg enum":
Found 1 device(s)
Device: JtagHs2
Product Name: Digilent JTAG-HS2
User Name: JtagHs2
Serial Number: 210249A143CA
I can also detect the FPGA using command "sudo djtgcfg init -d JtagHs2":
Initializing scan chain...
Found Device ID: 24004093
Found 1 device(s):
Device 0: XC6SLX ?
But when I tried to program the FPGA, it always failed. I tried with .bit file first using the following command:
This time it seems it recognizes the file and start to program, but it fails and gives error like this:
"Programming device. Do not touch your board. This may take a few minutes...
ERROR: failed to program device with file fpga_firmware.bin"
It seems that the Digilent Adept software I installed does not support Xilinx Spartan 6. Could anyone tell me what is wrong? Why it can not program Spartan 6?
Question
jutlwj
Hi, I am trying to program Spartan 6 FPGA(6SLX25FTG256) with Jtag HS2 in Ubuntu 14.04. I can see the device with command "sudo djtgcfg enum":
Found 1 device(s)
Device: JtagHs2
Product Name: Digilent JTAG-HS2
User Name: JtagHs2
Serial Number: 210249A143CA
I can also detect the FPGA using command "sudo djtgcfg init -d JtagHs2":
Initializing scan chain...
Found Device ID: 24004093
Found 1 device(s):
Device 0: XC6SLX ?
But when I tried to program the FPGA, it always failed. I tried with .bit file first using the following command:
sudo djtgcfg prog -d JtagHs2 -i 0 -f fpga_firmware.bit
Then it gave the following error:
"ERROR: failed to set programming file"
I then suspected it might be permission issue of the fpga firmware. I then changed the permission for both .bit and .bin files:
sudo chmod 777 fpga_firmware.bit
sudo chmod 777 fpga_firmware.bin
and then tried to program again. But it gave the same error--- "ERROR: failed to set programming file".
I then tried to program with .bin file:
sudo djtgcfg prog -d JtagHs2 -i 0 -f fpga_firmware.bin
This time it seems it recognizes the file and start to program, but it fails and gives error like this:
"Programming device. Do not touch your board. This may take a few minutes...
ERROR: failed to program device with file fpga_firmware.bin"
It seems that the Digilent Adept software I installed does not support Xilinx Spartan 6. Could anyone tell me what is wrong? Why it can not program Spartan 6?
Thank you.
Link to comment
Share on other sites
11 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.