Hi,
I am working on a custom board based on the nRF5340 using Zephyr RTOS with external QSPI NOR flash.
I am facing an intermittent issue with the external flash.
Observed issues:
- Read data does not always match written data
- Sometimes flash initialization behaves inconsistently
- Occasionally the flash appears unresponsive after power-on reset
- Manual reset sometimes fixes the issue temporarily
- Issue is intermittent and difficult to reproduce consistently
Environment:
- SoC: nRF5340
- SDK Version: 3.1.0
- External Flash: MX25L51245G
- Interface: QSPI
- Hardware: Custom board
Code:
overlay:
prj.conf:
===========
Observed debug log:
============================
Connected to COM4 @ 115200 ---
[00:00:00.410,644] [0m<dbg> qspi_nor: configure_chip: RDSR 7e QE 1 need 1: no-change[0m
*** Booting nRF Connect SDK v3.1.0-6c6e5b32496e ***
*** Using Zephyr OS v4.1.99-1612683d4010 ***
Voltage = 14, reg = 0xfc
QSPI Flash initialized successfully
Hello, nRF5340!
Erased sector 1 at address 0x00000000
Successfully erased 1 sectors (4096 bytes) starting from 0x00000000
Flash write success. 4096 bytes written.
flash_read:
FF FF FF FF FF .............
Questions:
- Can this happen due to flash protection/lock state?
- Is there any known QSPI initialization timing issue on nRF5340?