03-15-2016 10:44 AM
I wrote a c code in the microblaze to write to the SPI flash. The code will be used to update the FPGA's firmware. When programming from Vivado with the Xilinx programmer, I can set the SPI clock speed to values up to 66Mhz. I would like to know if there's a way for me to control the SPI clock speed in a similar way when manually writing to the SPI Flash.
03-15-2016 11:45 PM
when writing into the flash through microblaze system what is the clock speed you have interfaced/set to write into the spi flash?
03-16-2016 07:55 AM
Right now I set the desired spi clock rate when in the implementation settings. I know for a fact this works because when I compare the default value (3Mhz) with the value I have right now (30 or 33Mhz I believe), the time required to load the .bit after a reset changes acconrdingly.
The thing is, I don't have the spi clock output in my ucf since this signal is handled by the fpga from the configuration register. I'd like to know if I can modify this value at runtime (if so, how?) and if I can modify the SPI clock speed without doing a system reset.
03-17-2016 09:48 AM
@lauziepi Let me answer one of the question you have
The thing is, I don't have the spi clock output in my ucf since this signal is handled by the fpga from the configuration register
--> CCLK is the dedicated configuration pin, you have to instantiate STARTUPE2 to drive the clock.You have to drive the clock which is connceted to spi flash.