Hey y'all, I've had some success with writing to and reading from the Nano RP2040's flash memory using the LittleFS_Mbed_RP2040 library, but I seem to brick it every time I set the size of the mount > 1500 kB.
I'm a little confused since the datasheet mentions a 16MB flash memory. Am I doing something wrong? Is there another library I should be using? Is it even possible to use more of that 16MB memory?
Here's some sample code that bricked my RP2040:
#define _LFS_LOGLEVEL_ 1
#define RP2040_FS_SIZE_KB 2000
#define FORCE_REFORMAT false
#include <LittleFS_Mbed_RP2040.h>
LittleFS_MBED *myFS;
char fileName[] = MBED_LITTLEFS_FILE_PREFIX "/logFile.txt";
void setup() {
Serial.begin(9600);
while (!Serial){
delay(100);
};
myFS = new LittleFS_MBED();
if (!myFS->init()){
Serial.println("LITTLEFS Mount Failed");
while (1){}
} else{
Serial.println("LITTLEFS Mount Successful");
}
}
void loop() {
Serial.println("Not stuck");
delay(1000);
}