• 0
Sign in to follow this  
JColvin

Programming SPI flash in Cmod A7

Question

A customer on our website asked the following question:

Hi,
I have a problem programming my SPI bootloader project on the flash (N25Q032A) of my CMOD A7 35T. I followed all these guides: 
https://reference.digilentinc.com/learn/programmable-logic/tutorials/htsspisf/start
http://www.xilinx.com/support/answers/64238.html
http://www.xilinx.com/support/answers/63605.html

Briefly, my project is placed (through its linker script) into the SRAM CELLS of the board, and the bootloader into the BRAMs. Now, programming the FPGA with the bootloader .elf it works (the bootloader actually move the project data from flash to the SRAM CELLS and then it starts its execution), but I can't program the flash with the bootloader too (programming the flash with the download.bit created with "Program FPGA", as written in every guide). 

I also tried to create a .mcs file containing both FGPA configuration (download.bit) and the SREC of my project, but it didn't work. The TCL command to create the .mcs that I used in Vivado is:

write_cfgmem -format mcs -size 4 -checksum FF -interface spix4 -loaddata "up 0x0 /path/to/download.bit up 0x00C00000 /path/to/peripheral_test.srec" -force peripheral_test

I really need to write the FPGA configuration files to the Flash. How can I solve this problem? 

Thank you in advance,

The response is below.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hello,

I have asked some of our applications engineer about this; they'll get back to you here on the Forum.

I don't know if this will solve your problem, but you may want to take a look at this thread on our Forum to see if the suggestion there helps you.

Thanks,
JColvin

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this