How to read out the erased location of the external QSPI flash through QSPI DMA ENC (Cipher)?

Dear, 

We enabled QSPI DMA Encryption to cipher the external QSPI communication with enabling  NRF_QSPI_HAS_DMA_ENC.  So, QSPI DMA communication worked well.

However, when read out the erased area (supposed to be erased as 0xFF), the read data looked corrupted by QSPI Cipher module.  We want to read the erased area correctly with QSPI DMA enabled. 

Do you have any way to read the erased area (erased with 0xFF) correctly through QSPI DMA enabled? 

 

Regards, 

  • Hi

    This is to be expected. When encryption is enabled the QSPI module will assume that all the data is encrypted, and will attempt to decrypt it. When you decrypt an empty page the result will change, and you will get some pseudo random data. 

    It should be possible to disable the encryption feature temporarily, if you want to check if a certain area of the flash is 0xFF. Just keep in mind that as long as it is disabled you won't be able to read the encrypted data properly. 

    Best regards
    Torbjørn

Related