Nrf5340 and W25Q128JV Nor Flash R/W problem?

Hello,

We are trying to use nrf5340 and W25Q128JV (https://www.winbond.com/resource-files/W25Q128JV%20RevI%2008232021%20Plus.pdf) nor flash on our own designed card. I am checking the flash operation via spi_flash example. 

I made changes to the DTS file. (jedec-id = [ef 40 18]; size = <134217728>;) 

When reading flash, FF is displayed and I can't write data to flash. Can you support me? 

Thanks

  • Hello,

    I apologize for the delay in my response; I was away for the past two days attending some workshops.

    While reviewing the shared .dts file, I noticed that the flash node defined does not match the W25Q128JV. You should use the JEDEC SPI-NOR compatible string for the W25Q128JV. For your reference, please see the flash node example below:

    &qspi {
        status = "okay";
        
        flash0: w25q128@0 {
            compatible = "nordic,qspi-nor"; /* Change to QSPI compatible */
            reg = <0>;
        sck-frequency = <8000000>;
        jedec-id = [ef 40 18]; /* W25Q128JV JEDEC ID */
        size = <134217728>; /* 128 Mbit */
        writeoc = "pp"; 
        readoc = "read";
    };
    // Only for refernce

    Make sure the CS pin is correctly connected and configured as an output in your initialization code. Ensure that the flash is properly powered, with appropriate voltage levels.

    Kind Regards,

    Abhijith

  • Hello Gautam,

    Please create a new ticket detailing your issue, and try to include as much information as possible. 

    Regards,
    Abhijith

  • Communication with flash will be qspi. I guess the spi you sent is for flash, right? Also, we basically use flash to update the network core with DFU? Our priority is to run qspi directly and solve the problem. 

    Does (compatible = "jedec,qspi-nor";) works?

    The supply voltage and the CS pin were checked.There doesn't seem to be a problem. 

  • Hello,

    Sorry that was a typo and I have updated it now.

    -Abhijith

Related