11-16-2020 06:47 AM - edited 11-16-2020 06:48 AM
Hi All,
I want to read then write to the nor flash attached to the QSPI of the Zynq-7000 device. From what I understand:
1) The BootROM loads FSBL
2) The FSBL configures the QPSI hardware (and other config enabled),
3) The PL partition (bitstream) partition is read using QSPI and FPGA fabric programmed.
3) Finally PS partition is loaded to DDR
4) FSBL handsoff to the PS / Application code.
Now, I want to read the Flash in the application code. Do I need to do the QSPI init all over again or since the FSBL already configured it, I can just read using the same FSBL code?
11-16-2020 11:02 AM
hi @Bareil761 ,
you can do either of the way. we have example applications which will read the flash memory (from initialization). please check this: https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/qspips/examples/xqspips_flash_polled_example.c
the above application will read/write the QSPI flash memory. You can modify it to meet your requirement and use it.
Best Regards,
Srikanth
11-16-2020 11:02 AM
hi @Bareil761 ,
you can do either of the way. we have example applications which will read the flash memory (from initialization). please check this: https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/qspips/examples/xqspips_flash_polled_example.c
the above application will read/write the QSPI flash memory. You can modify it to meet your requirement and use it.
Best Regards,
Srikanth