08-31-2010 01:40 PM
I have searched all over for a bootloader that will bootload from a SPI flash that works on .srec files. None of the app notes really do this, the one I found (973) the instructions for making the bootloader don't work (at least not in ISE 12)
Is my only option to actually merge code from a SPI binary bootloader and a parrallel flash srec bootloader, or am I missing something simple.
This seems like something that should be plug and play, but for some reason it appears to be an "unsupported" option.
04-18-2011 01:56 PM
Did you ever get to solve this (or anyone)?
I'm using ISE 13.1 and I want to create a bootleader that will pull the application from SPI Flash, copy it to DDR3 RAM and jump to it. Is the SREC format only for parallel flash or can it also be used for Serial SPI Flash? This is what I do:
I create my SREC file by running (given my already prepared program named "program.elf"):
mb-objcopy -O srec program.elf program.srec
Then I create the download.bit file that contains the FPGA bitstream and the bootloader (using the program button in SDK which runs data2mem to update the bitstream file with the bootloader data to be written at internal BRAM).
Then I use iMPACT to create an MCS file that has the download.bit file and the progra.srec file at an offset location down the SPI Flash (at which the bootloader points to).
Still, the bootloader doesn't work. The error message I get is: "Error while reading an SREC line from flash" (again, I using the bootloader program that is included in SDK.
Any help would be appreciated.
04-18-2011 03:11 PM
The Avnet Spartan-6 MicroBoard support files contain a tutorial on how to do what you are asking.
Select Support Files and Downloads.
The tutorial can be used for other boards, taking into consideration the size of the bit file in SPI.