04-14-2016 06:35 AM - edited 04-15-2016 01:12 AM
I have a design (Spartan6, PlanAhead 14.7, MicroBlaze) and would like to create a script for creating a .mcs for a SPI-prom that includes
- download.bit (system.bit + bootloader.elf) <- merging is done
- application.srec <- conversion .elf to .srec is done
download.bit and application.srec are located in subdirectory "mcs".
filename.mcs should be written in subdirectory "mcs".
Doing this with the Impact-GUI is no problem.
Starting address of the application inside the prom is 0x40b000.
This does not work. (download.bit file is put to address 0x40b000)
Why????
impact -batch impact.cmd
---------------------------------------------
impact.cmd:
setMode -pff
setSubmode -pffspi
addConfigDevice -name "filename" -path "mcs"
setAttribute -configdevice -attr multibootBpiType -value ""
setAttribute -configdevice -attr compressed -value "FALSE"
setAttribute -configdevice -attr compressed -value "FALSE"
setAttribute -configdevice -attr autoSize -value "FALSE"
setAttribute -configdevice -attr fileFormat -value "mcs"
setAttribute -configdevice -attr fillValue -value "FF"
setAttribute -configdevice -attr swapBit -value "FALSE"
setAttribute -configdevice -attr dir -value "UP"
setAttribute -configdevice -attr multiboot -value "FALSE"
setAttribute -configdevice -attr multiboot -value "FALSE"
setAttribute -configdevice -attr spiSelected -value "TRUE"
setAttribute -configdevice -attr spiSelected -value "TRUE"
addPromDevice -p 1 -size 16384 -name 16M
addDesign -version 0 -startaddress 0x0
addDeviceChain -index 0
addDevice -p 1 -file "mcs/download.bit"
addDesign -version 0 -startaddress 0x40b000
addDeviceChain -index 1
addDevice -p 1 -file "mcs/application.srec"
generate
quit
---------------------------------------------
04-22-2016 06:40 AM
04-22-2016 06:58 AM
The whole impact.cmd is working fine, if you remove this block:
----------------
addDesign -version 0 -startaddress 0x40b000
addDeviceChain -index 1
addDevice -p 1 -file "mcs/application.srec"
----------------
This means I am able to create a filename.mcs that contains the download.bit file in subfolder mcs.
I am not able to tell Impact (via batch) that I want to add a "Non-Configuration Data file" application.srec (and not a second .bit).
Doing this using the GUI is easy (see screenshots)
04-27-2016 11:34 PM
04-27-2016 11:58 PM