I am implementing an eSPI -> NOR-Flash driver for a custom RTOS. By parsing the Core Manual (T1024_RM_rev1_201809.pdf), the Application Notes (AN4375.pdf), the NOR-Flash part manual (S25FL032P_00.pdf), and the U-Boot sources I was able to correctly issue the READ (03h) and READ_ID (90h) commands and receive the replies.
However, I am stuck trying to write (WREN, RDSR, P4E, PP) the Flash.
I believe the issue is that I do not issue a command with no address arguments correctly and I am looking for an example that shows (with raw memory peeks and pokes) how to:
1) Issue a WREN command
2) Verify its correct execution in the Status Register, via RDSR command.
3) Issue a page erase command (P4E) at a given address
As an example, please consider my exercises with U-Boot.
What am I doing wrong? Is there a sharp eyed viewer that can point me in the right direction?
Thanks
--Roberto
P.S. Please consider that the following sequence works in U-Boot
i am following the same above still not working please let me know on this how to correct
Look at SDK 1.9 u-boot source code. This SDK supports SPI flash using eSPI controller.
See eSPI driver code from this SDK in the attached file.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------