This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

QSPI erase/write handling

The documentation is unclear about QSPI handling:

If I issue a QSPI erase command then I receive confirmation that the erase command has been written to the external QSPI chip; the external QSPI chip will commence the erase operation.

Questions:

1) If I immediately issue a QSPI Write command then does the chip wait until the external QSPI chip has finished the erase?

2) If it does wait then  is there a timeout on this or will it hang forever?

[I believe that the chip issues read status instructions to determine the state of the external QSPI chip's WIP bit. However the documentation is unclear on how oftern it does this, if there is a timeout, etc]

Parents
  • A related question is when is the status register of the external memory read into the top byte of the QSPI STATUS register? Is it updated periodically or only after read/write/erase?

  • Hi 

    MKJ said:
    A related question is when is the status register of the external memory read into the top byte of the QSPI STATUS register? Is it updated periodically or only after read/write/erase?

    As mentioned earlier this is read automatically before starting a write/read/erase operation, to ensure that the flash device is ready to accept new commands. 

    MKJ said:
    Also is the datasheet correct for the STATUS register - I see bit 1 set to '1'

    You mean you see bit 1 set to 1 in the debugger?

    Best regards
    Torbjørn

Reply
  • Hi 

    MKJ said:
    A related question is when is the status register of the external memory read into the top byte of the QSPI STATUS register? Is it updated periodically or only after read/write/erase?

    As mentioned earlier this is read automatically before starting a write/read/erase operation, to ensure that the flash device is ready to accept new commands. 

    MKJ said:
    Also is the datasheet correct for the STATUS register - I see bit 1 set to '1'

    You mean you see bit 1 set to 1 in the debugger?

    Best regards
    Torbjørn

Children
No Data
Related