SPI NOR peripheral restart

Hi 

I have an external NOR flash chip which is powered off on startup. The idea is to power up the flash when needed to reserve power. On startup, I get the error message:

<err> spi_nor: SFDP magic ffffffff invalid
<err> spi_nor: SFDP read failed: -22

Enabling the power pin only starts during application code, meaning SPI-NOR fails before that.

Is there a way to restart the SPI-NOR instance or driver to re-attempt initializing the device?

I have had limited success by reorganizing boot priorities to have GPIO start before SPI, but what about the case where I have to reinitialize during runtime?

I have also tried remounting the fstab entry, but it doesn't seem to do anything to the SPI situation.

I appreciate any guidance regarding this

Parents
  • Hi

    Vidar asked me to take a look at your ticket. It should indeed be possible to enable the Quad I/O with the EQIO instruction. Afterwards you have to remember that all instructions are expected to 4-bit multiplexed, and if you're able to use the QSPI NOR driver, putting the flash IC into deep power-down mode as Vidar suggests on suspends, that should be the best way to reduce current consumption as far as I can tell.

    Can you tell me more about what is happening on your end when you try to get the quad requirements to work?

    Best regards,

    Simon

  • Hi  

    Not one of the quad-enablements options work. All return something resembling the below

    qspi_nor: qspi_nrfx_configure: RDSR 08 QE 0 need 0: no-change

    Specifying NONE doesn't produce any additional logs, but the boot process doesn't progress.

    I have defined a fixed regulator on the supply pins, and it works for the spi-nor setup to get power on startup, but not for QSPI at all. There also isn't a vin_supply option for qspi or nordic, qspi-nor. Even so, I set the init priority for gpio and the regulator to 0, and I can see it is setup before qspi starts.

Reply
  • Hi  

    Not one of the quad-enablements options work. All return something resembling the below

    qspi_nor: qspi_nrfx_configure: RDSR 08 QE 0 need 0: no-change

    Specifying NONE doesn't produce any additional logs, but the boot process doesn't progress.

    I have defined a fixed regulator on the supply pins, and it works for the spi-nor setup to get power on startup, but not for QSPI at all. There also isn't a vin_supply option for qspi or nordic, qspi-nor. Even so, I set the init priority for gpio and the regulator to 0, and I can see it is setup before qspi starts.

Children
No Data
Related