Troubleshooting QSPI Initialization Issues on NRF5340-DK

Troubleshooting QSPI Initialization Issues on NRF5340-DK

Hello everyone,

I’ve been working on getting the QSPI flash (MX25R64) to initialize properly on my NRF5340-DK development board. While I’ve managed to configure the QSPI support and flash, the initialization process keeps failing, and the device remains in a non-ready state. I wanted to share my experiences and thoughts in case others might have encountered similar issues or could offer some guidance.

Observations and Attempts

  1. QSPI Configuration: I followed the standard configuration steps for enabling QSPI on the NRF5340-DK. This included modifying the device tree to enable QSPI support and adding the MX25R64 flash configuration. However, despite these changes, the flash initialization consistently fails.

  2. Device Logs: The logs indicate that the device is unable to communicate with the QSPI flash. There are repeated attempts to read and write to the flash, but these operations are unsuccessful. This suggests that the QSPI interface might not be properly configured or that there’s an issue with the flash itself.

  3. Physical Connections: I’ve double-checked the physical connections between the NRF5340-DK and the MX25R64 flash. Everything seems to be in order, so I’m leaning more towards a software or configuration issue rather than a hardware problem.

Thoughts and Possible Solutions

  1. Boot Pin Configuration: One area I’m unsure about is the configuration of the boot pins. If the boot pins aren’t set correctly, the device might not properly initialize the QSPI interface. I’m planning to revisit the boot pin configuration to ensure it aligns with the requirements of the MX25R64 flash.

  2. Firmware Updates: Another possibility is that the firmware or software stack I’m using has a bug related to QSPI initialization. I’ll check for any available updates or patches that might address this issue.

  3. Alternative Flash Devices: As a last resort, I’m considering trying a different QSPI flash device to see if the issue is specific to the MX25R64. This could help isolate whether the problem lies with the flash itself or with the configuration on the NRF5340-DK.

Next Steps

  • Recheck Configuration: I’ll go through the QSPI configuration settings again to ensure they match the specifications of the MX25R64 flash.
  • Update Firmware: I’ll update the firmware and software stack to the latest versions to rule out any bugs that might have been fixed in recent updates.
  • Test with Different Flash: If the issue persists, I’ll try using a different QSPI flash device to see if the problem is specific to the MX25R64.

Request for Assistance

If anyone has successfully configured QSPI on the NRF5340-DK with the MX25R64 flash or has encountered similar issues, I’d greatly appreciate any insights or advice you might have. Your experiences could help me resolve this issue more efficiently.

Thank you for your time and assistance!

Best regards,
[Your Name]