NR5340DK + spi_flash example: mx25r6435f@0: device not ready

Hello,

I'm having an error when running the spi_flash example on a nrf5340DK.

I added this to the .conf file to have more info:

CONFIG_FLASH_LOG_LEVEL_DBG=y
CONFIG_LOG=y
CONFIG_LOG_MODE_IMMEDIATE=y

Here are the console logs:

[00:00:00.253,509] <dbg> qspi_nor: qspi_nrfx_configure: RDSR 00 QE 0 need 1: updating
[00:00:00.261,871] <err> qspi_nor: JEDEC id [00 00 00] expect [c2 28 17]
*** Booting nRF Connect SDK v2.5.2 ***
mx25r6435f@0: device not ready.

I'm using ncs 2.5.2.

Am I missing something to run this example?

Parents
  • Hello,

    Please try to run the example again after having erased the flash with nrfjprog:  nrf52840DK QSPI Flash memory . That, or try to power-cycle the DK.

    $ nrfjprog --qspieraseall -f nrf53
     

    Best regards,

    Vidar

  • Hello Vidar,

    I am experiencing the same issue however it is on a custom board based n the nrf5340dk. The flash chip is the same as the one used on the dk. The only differrence is that I made a mistake in my schematic, and swapped CS and SCLK. I was able to swap them in the device tree and verified with a scope that the change registered properly.

    Yellow - Clock input at chip

    Blue - CS input at chip

    Left - nF5340DK schematic

    Right - Custom Board

    When I attempt to run the spi_flash example code I receive the following.

    And when I attempt to run the erase flash command referenced above, I get an error. However I get the error when I attempted it on my nRF5340dk as well.

    attached is the log.log after I run the command.

    Any suggestions would greatly be appreciated!

    Thank you in advance!

    7848.log.log

Reply
  • Hello Vidar,

    I am experiencing the same issue however it is on a custom board based n the nrf5340dk. The flash chip is the same as the one used on the dk. The only differrence is that I made a mistake in my schematic, and swapped CS and SCLK. I was able to swap them in the device tree and verified with a scope that the change registered properly.

    Yellow - Clock input at chip

    Blue - CS input at chip

    Left - nF5340DK schematic

    Right - Custom Board

    When I attempt to run the spi_flash example code I receive the following.

    And when I attempt to run the erase flash command referenced above, I get an error. However I get the error when I attempted it on my nRF5340dk as well.

    attached is the log.log after I run the command.

    Any suggestions would greatly be appreciated!

    Thank you in advance!

    7848.log.log

Children
Related