How to enable QSPI encryption

Hello,

Does the nRF Connect SDK support enabling QSPI encrytpion (DMA, XIP)?

I see there are two functions in the nrfx_qspi.c that do this: nrfx_qspi_xip_encrypt and nrfx_qspi_dma_encrypt. But the Zepher driver in nrf_qspi_nor.c doesn't reference them and that makes me think that QSPI encryption isn't supported by the driver.

I'm using latest NCS.

Thanks

Parents
  • Hello!

    The Zephyr flash API does not currently provide any method of configuring encryption for transfers performed with the flash chip, hence the nrf_qspi_nor driver does not call nrfx_qspi_dma_encrypt() or nrfx_qspi_xip_encrypt(). But it should be possible to call those functions outside of the driver, after the driver is initialized but before any transfer is performed, to enable encryption for DMA and/or XIP transfers (nothing needs to be changed in the driver itself).

    Could this be a solution for you?

    Best regards,

    Elfving

Reply
  • Hello!

    The Zephyr flash API does not currently provide any method of configuring encryption for transfers performed with the flash chip, hence the nrf_qspi_nor driver does not call nrfx_qspi_dma_encrypt() or nrfx_qspi_xip_encrypt(). But it should be possible to call those functions outside of the driver, after the driver is initialized but before any transfer is performed, to enable encryption for DMA and/or XIP transfers (nothing needs to be changed in the driver itself).

    Could this be a solution for you?

    Best regards,

    Elfving

Children
No Data
Related