I am following the tutorial on:
ESP32 with VS Code and PlatformIO: Upload Files to Filesystem (SPIFFS)
Creating the file was OK,
uploading the file (when I closed the serial monitor) was also no problem,
but I can’t read the previously uploaded file.
The following error got reported:
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x40080400,len:3028
entry 0x400805e4
E (113) psram: PSRAM ID read error: 0xffffffff
Maybe I make it too complicated, but I did add something to my platformio.ini:
[env:denky32] platform = espressif32 board = denky32 framework = arduino board_build.filesystem = spiffs monitor_speed = 115200
Any idea what I am doing wrong?
Best,
Loetluemmel
<gmpf!>
I made it too complicated!
Fix in platformio.ini:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html [env:esp32dev] platform = espressif32 board = esp32dev framework = arduino board_build.filesystem = spiffs monitor_speed = 115200
And as I defined the monitor speed in the .ini file, it makes sense to also use the same speed in the serial output:
void setup() {
Serial.begin(115200);
...
Now I can read the content of my file ok.
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4
File Content:
Das ist meine Textdatei!
Great Sara and Rui, thank you once over for this tutorial!
Yours Loetluemmel!