cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Newbie
Newbie
877 Views
Registered: ‎04-04-2018

iMPACT in batch mode to program Zynq QSPI and CPLDs not working

Jump to solution

I have a chain with 4 devices in it.

P1 = Zynq with attached QSPI S25LF128

P3 = X2C256

P4 = X2C256

P5 = X2C256

 

I am using a digilent JTAG-HS3 cable. When functioning in GUI mode (14.7) I can detect the chain, set all the CPLD .jed files and program them no problem. 

 

I can also set the .bin file for the SPI FLASH attached to the Zynq and program it.

All this works from GUI. I used hte GUI to get the commands initially, but it did not have the "attachflash" command. Without it, it complains that there is no device in position 1. After much searching, I found the use of the "attachflash" command to get past that error.

 

In Batch mode, I can program all the CPLDs but have no luck with the SPI FLASH.

Below is my cmd file contents:

setMode -bs
setCable -target "digilent_plugin FREQUENCY=2000000"
Identify -inferir
identifyMPM 
attachflash -p 1 -spi "S25FL128"
assignfiletoattachedflash -p 1 -file mySpi.bin
Program -p 1 -qspi single -image mySpi.bin
info
exit

And here is the output: iMpact exits on the line where the "attachflash" command is. If I mispell the part number, if give an error so say it does not find the data.

iMPACT Version: Oct 13 2013 10:22:21

iMPACT log file Started on Wed Apr 04 19:53:18 2018

Preference Table
Name                 Setting             
StartupClock         Auto_Correction     
AutoSignature        False               
KeepSVF              False               
ConcurrentMode       False               
UseHighz             False               
ConfigOnFailure      Stop                
UserLevel            Novice              
MessageLevel         Detailed            
svfUseTime           false               
SpiByteSwap          Auto_Correction     
AutoInfer            false               
SvfPlayDisplayComments false               
INFO:iMPACT - Digilent Plugin: Plugin Version: 2.4.4
INFO:iMPACT - Digilent Plugin: found 1 device(s).
INFO:iMPACT - Digilent Plugin: opening device: "JtagHs3", SN:210299A56268
INFO:iMPACT - Digilent Plugin: User Name: JtagHs3
INFO:iMPACT - Digilent Plugin: Product Name: Digilent JTAG-HS3
INFO:iMPACT - Digilent Plugin: Serial Number: 210299A56268
INFO:iMPACT - Digilent Plugin: Product ID: 31100153
INFO:iMPACT - Digilent Plugin: Firmware Version: 010A
INFO:iMPACT - Digilent Plugin: JTAG Port Number: 0
INFO:iMPACT - Digilent Plugin: JTAG Clock Frequency: 2000000 Hz
Identifying chain contents...'0': : Manufacturer's ID = Xilinx xc2c256, Version : 1
INFO:iMPACT:1777 - 
   Reading C:/Xilinx/14.7/LabTools/LabTools/xbr/data/xc2c256.bsd...
INFO:iMPACT:501 - '1': Added Device xc2c256 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'1': : Manufacturer's ID = Xilinx xc2c256, Version : 1
INFO:iMPACT:501 - '1': Added Device xc2c256 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'2': : Manufacturer's ID = Xilinx xc2c256, Version : 1
INFO:iMPACT:501 - '1': Added Device xc2c256 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'3': : Manufacturer's ID = Xilinx xc7z020, Version : 2
INFO:iMPACT:1777 - 
   Reading C:/Xilinx/14.7/LabTools/LabTools/zynq/data/xc7z020.bsd...
INFO:iMPACT - Using CseAdapterBSDevice
INFO:iMPACT:501 - '1': Added Device xc7z020 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'4': : Manufacturer's ID = Xilinx zynq7000_arm_dap, Version : 4
INFO:iMPACT:501 - '1': Added Device UNKNOWN successfully.
----------------------------------------------------------------------
INFO:iMPACT:1777 - 
   Reading C:/Xilinx/14.7/LabTools/LabTools/zynq/data/zynq7000_arm_dap.bsd...
INFO:iMPACT:1777 - 
   Reading C:/Xilinx/14.7/LabTools/LabTools/zynq/data/zynq7000_arm_dap.bsd...
----------------------------------------------------------------------
done.
Elapsed time =      1 sec.
Elapsed time =      0 sec.
Elapsed time =      0 sec.
Elapsed time =      0 sec.
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
0 Kudos
Reply
1 Solution

Accepted Solutions
Highlighted
Newbie
Newbie
1,019 Views
Registered: ‎04-04-2018

So it turns out that I had too many commands in the batch file. The file below allows to program the QSPI FLASH with batch mode using iMPACT.

 

setMode -bs
setCable -target "digilent_plugin FREQUENCY=2000000"
Identify -inferir
identifyMPM 
Program -p 1 -qspi single -image mySpi.bin
info
exit

View solution in original post

0 Kudos
Reply
1 Reply
Highlighted
Newbie
Newbie
1,020 Views
Registered: ‎04-04-2018

So it turns out that I had too many commands in the batch file. The file below allows to program the QSPI FLASH with batch mode using iMPACT.

 

setMode -bs
setCable -target "digilent_plugin FREQUENCY=2000000"
Identify -inferir
identifyMPM 
Program -p 1 -qspi single -image mySpi.bin
info
exit

View solution in original post

0 Kudos
Reply