LittleFS library

paoloboatto

Active member
I'm using the LittleFS library on a Teensy 4.1 and it works pretty well. I have made tests using a PSRAM soldered on the Teensy's bottom pads. I noticed that even when the PSRM chip is not soldered the function begin returns true. It can be easily tested ith the example LittleFS_PSRAM_Simple_Datalogger.ino
It would be very useful to be able to know if the PSRAM chip is mounted or not.
Is it a known bug? Is there a workaround?
 
The memory mapping for PSRAM is always enabled regardless of whether or not it's actually present.

Code:
extern "C" uint8_t external_psram_size;

...

if (external_psram_size == 0) {
    fprintf(stderr, "You need PSRAM installed for this program\n");
    // stop
    while(1);
}
// else continue as normal
 
Back
Top