Hello,
We are working on Zynq-7020 and using spi flash,spansion-"S25FL256SAGMFI00".Can anybody please provide the source code for read and write in C/C++.
Thank you
Hello,
We are working on Zynq-7020 and using spi flash,spansion-"S25FL256SAGMFI00".Can anybody please provide the source code for read and write in C/C++.
Thank you
Hi arjunbk09,
If you look in U-Boot source code, you could use that C code as an example of how to read and write to the SPI Flash device.
For ZedBoard, a good place to start looking might be /drivers/mtd/spi/spansion.c to see how these devices get accessed. Also take a look at the "sf" command interpreter to see how the high level commands are processed.
Regards,
-Kevin