cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Visitor
Visitor
279 Views
Registered: ‎06-04-2020

Reading flash from application

Jump to solution

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?

Tags (2)
0 Kudos
Reply
1 Solution

Accepted Solutions
Moderator
Moderator
251 Views
Registered: ‎10-30-2017

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

View solution in original post

1 Reply
Moderator
Moderator
252 Views
Registered: ‎10-30-2017

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

View solution in original post