nrf5340dk qspi_nor flash driver - fastread no longer working

We are trying to build an qspi external flash application with the nrf5340dk. However, I noticed, that when going from ncs v2.4.2 to v2.5.2, the qspi_nor flash driver no longer works when configuring the readoc to use fastread instead of read4io, on a default nrf5340 development kit with the built in MXR25R64 flash. I've managed to replicate this in the mass storage sample, the spi flash sample, and in our own project that utilizes the qspi nor driver. The specific error that comes up is that the jdec ID on the flash somehow reads as all zeros, instead of the actual jdec id on the flash. Do you know if you could help resolve this in a future version of ncs? So far, I have tried replacing the code for the driver itself (nrf_qspi_nor.c) in 2.5.2 with the code from 2.4.2, but that has not resolved the issue.

Thanks,

Devan Mallory

Parents
  • Dear Hung Bui,

    Yes, sorry about that, you are correct, on version ncs 2.5.0 fastread actually works so the issue is in v2.5.1. the mass storage sample I used is located in ncs\v2.5.1\zephyr\samples\subsys\usb\mass, and I used the nrf5340dk_nrf5340_cpuapp.overlay file located in the boards folder. In my overlay I also copied the &qspi node from the nrf340 cpuapp dtsi file, and then edited the read and write operations as shown in the first picture that I sent. The overlay was working with pp4io and read4io, but failing when I put pp and fastread instead.

  • Hi Devan, 
    Good to know that v2.5.0 works. Could you please provide the nrf5340dk_nrf5340_cpuapp.overlay you used or the one that can reproduce the issue ?I just want to make sure we use the same file. 

Reply Children
Related