Does anyone know of a decent library with examples that I can play about with?
I have binned the HORRIBLE ESP32 S3 and gone back to a standard ESP32 Wroom 1.
I have an SDcard connected, and an external SPIFFs memory IC (w25q128fv).
I have tried the following libraries...
SparkFun_SPI_SerialFlash - This reads the memory, but there are no other examples apart from reading the chip information.
Effortless_SPIFFS - No configuration options and no examples
Serialflash library - doesn't compile at all - LOADS of errors
Adafruit_SPIFlash - Doesn't compile
ESPflash - works, but no useful examples and cannot access external SPI (no idea how)
SPIMemory - None of the examples seem to work
Achieved:
Play an MP3 file from the onboard SPIFFS memory. Done that. All fine.
Play an MP3 file from the SD card. Done that. All fine.
Not achieved (due to not working out how to access the external SPI chip correctly)
Transfer MP3 files from the SD card to the external SPIFFS memory
Play an MP3 file from the external SPIFFS memory file.
All the libraries either don't have examples that work, or not enough information for me to deduce what the issue is. Or.. not enough examples.
The SparkFun_SPI_SerialFlash library works great, but there is only a read example.
The best set of examples are in the Serialflash library. But it throws up a pile of errors. Is it meant for Teensy's only?
For example, the Copy SD to Spiffs example throw up:
C:\Users\steve\Documents\Arduino\ESP32 Multi-function board with sound 2023\Prototype_board_v12\Prototype_board_v12.ino: In function 'void loop()':
Prototype_board_v12:225:28: error: 'filename' was not declared in this scope
if (SerialFlash.create(filename, length)) {
^~~~~~~~
C:\Users\steve\Documents\Arduino\ESP32 Multi-function board with sound 2023\Prototype_board_v12\Prototype_board_v12.ino:225:28: note: suggested alternative: 'basename'
if (SerialFlash.create(filename, length)) {
^~~~~~~~
basename
Prototype_board_v12:225:38: error: 'length' was not declared in this scope
if (SerialFlash.create(filename, length)) {
^~~~~~
C:\Users\steve\Documents\Arduino\ESP32 Multi-function board with sound 2023\Prototype_board_v12\Prototype_board_v12.ino:225:38: note: suggested alternative: 'long'
if (SerialFlash.create(filename, length)) {
^~~~~~
long
Prototype_board_v12:234:15: error: 'f' was not declared in this scope
n = f.read(buf, 256);
^
Prototype_board_v12:251:5: error: 'f' was not declared in this scope
f.close();
^
C:\Users\steve\Documents\Arduino\ESP32 Multi-function board with sound 2023\Prototype_board_v12\Prototype_board_v12.ino:251:5: note: suggested alternative: 'fs'
f.close();
^
fs
'filename' was not declared in this scope