hyperFlash write access

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

hyperFlash write access

Jump to solution
1,438 Views
rans
Senior Contributor I

Hello,

I would please like to ask about hyperFlash example (evkmimxrt1050_flexspi_hyper_flash_polling_transfer):

In the example, I see the following parts:

1. hyperFlash initialization

2. hyperFlash write of page

3. hyperFlash read of page

4. compare the read and write contents.

I had assumed that flexSPI interface only needs to be initialized (There is LUT for read and write command) , and then can be accessed by direct read/write from the absolute address (where the device is mapped to).

Yet, I see that the write functionality is done through wrappers:

flexspi_nor_flash_page_program -> FLEXSPI_TransferBlocking -> FLEXSPI_WriteBlocking

The read is done by direct access to address, is expected.

Can someone explain why the write must use this wrappers ?

Thank you,

ranran

0 Kudos
Reply
1 Solution
1,247 Views
igorpadykov
NXP Employee
NXP Employee

Hi ranran

>Can someone explain why the write must use this wrappers ?

since writing procedure requires some time for performing flashing
sequence, it waits (using blockng wrapper) until hyperflash will be ready for
next usage.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
1 Reply
1,248 Views
igorpadykov
NXP Employee
NXP Employee

Hi ranran

>Can someone explain why the write must use this wrappers ?

since writing procedure requires some time for performing flashing
sequence, it waits (using blockng wrapper) until hyperflash will be ready for
next usage.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply