Jump to content
  • 0

Programming SPI flash in Cmod A7


JColvin

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.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...