h4yn0nnym0u5e
Well-known member
Despite a valid part being fitted, when this function is called the chip ID is not read correctly, resulting in a NULL info pointer, which is not checked and is dereferenced, causing a Data Access Violation. The part fitted is a W25N01GVZEIG. Example code:
C++:
#include <LittleFS.h>
const char* szDiskMem = "QSPI_NAND";
LittleFS_QPINAND myfs;
void setup()
{
while (!Serial) // wait for serial to connect
;
if (CrashReport)
Serial.println(CrashReport);
Serial.println("Start LittleFS...");
if (!myfs.begin())
{
Serial.printf("Error starting %s\n", szDiskMem);
while (1)
;
}
const char* mn = myfs.getMediaName();
Serial.printf("Chip is %s\n",mn?mn:"unknown - nullptr");
Serial.println("setup() complete");
}
void loop()
{
}