using ext flash memory

gonzales

Well-known member
Hi!
I have W25Q128JVSQ chip, as i can see, the same as here https://www.pjrc.com/store/psram.html.
I try to use LittleFS library (https://github.com/PaulStoffregen/LittleFS#nor-flash), but unfortunatly my chip wont initilized.

C++:
LittleFS_SPIFlash myfs;
#define chipSelect 6
if (!myfs.begin(chipSelect, SPI)) { 
    Serial.printf("Error starting %s\n", "SPI FLASH");
    while (1) {
      // Error, so don't do anything more - stay stuck here
    }
  }

Can you tell me what the problem might be? I tried soldering two different chips, but the result is the same.
At the same time, the PSRAM chip work fine.
 
Last edited:
Assuming it is soldered to the second spot beyond PSRAM on the QSPI pads on the bottom?

It is QSPI not SPI and the above code would not work.

There is an example in LittleFS\Test_Integrity that are preconfigured to work and should work with properly soldered chip - that isn't compromised with uncleaned Flux.

in IDE 1.8.19 see the Arduino install: ...\hardware\teensy\avr\libraries\LittleFS\examples\Test_Integrity\QSPI
> path similar in its own location using IDE 2.

Look at that example for proper function test and usage with:
Code:
    if (!myfs.begin()) {
        Serial.printf("Error starting %s\n", szDiskMem);
        while( 1 );
    }

Where "szDiskMem" is just text initialized to make the error print complete.
 
Thanks a lot. Test_Integrity\QSPI work fine. I assumed that LittleFS_QSPIFlash should be used, but I did not figure out the initialization, in this case it turns out to have no parameters at all.
I will study it!!
One more thanks!!!
 
Back
Top