05-30-2012 10:36 AM
Hi, this is my first post on this forum!
In our company we used an FPGA for high speed data acquisition for the first time, we are about to relase the product, so we need to insert a "bootloader" for let our client do upgrades in future.
The fpga boot with a SPI Flash memory, witch is connected also with the microcontroller (tristated pin)!
My question is:
How can i stream the MCS file onto the spi flash?
I mean, i know how to program the flash with mcu, but i need something readable by the mcu, and i don't know anything about MCS file format, or what sector i need to program on the flash.
I've found this:
http://www.xilinx.com/support/documentation/application_notes/xapp058.pdf
but i think my situation is different, i don't want to go trough the fpga to program the flash (the board is already done, so i just can't do it)
Sorry in advance if this would be a stupid question!
05-30-2012 10:56 AM
i don't know anything about MCS file format, or what sector i need to program on the flash.
When you use the Xilinx search tool to find "mcs file format", AR #476 shows up first in the list.
-- Bob Elkind
05-30-2012 11:13 AM
Thank you very much for the fast reply!
It's so simple?
I just need to program the flash with the hex generated by this command "promgen -p hex -r input.mcs -o output.hex" and that's all?
05-30-2012 12:19 PM
It's so simple?
Here's an experiment that everyone needs to try at least once in their careers:
This helps sort out lingering questions with
-- Bob Elkind
05-31-2012 04:43 AM
Ok, i've done the first step hundred time, so i know the pcb and the flash works!
Now i will do the same with the mcu, if i'll have some problem I'll post it here!
Thank you!
07-24-2013 04:32 AM
Hi politoleo
I intend to program spi flash using uController as you mentioned. could you please help me to do it if you succeeded in?
I want to know that which part of MCS file should be written in SPI flash and in what order?
thnaks,
Amin
07-31-2013 11:05 PM
Hi
That was simple. I did it.
Thanks
01-23-2015 08:43 AM
I just had the same problem but the previous comment did not help me a lot. I found a solution and will post it here for other to benefit from it.
1) Keep the INI_B low on reset to prevent the FPGA from getting control of the SPI pins. (this way, it will work even if FPGA is in master mode)
2) Program the .mcs file to the FPGA with the correct memory addresses.
See the comment from chapman on page 1 on this thread to get the correct addresses. It will explain where to place the data on the SPI chip. Also, .mcs files are nice because the CRC is already calculated.
I read the PROM and compared it with the .mcs file and it corresponds to the thread above.