• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

SPIFFS and platformio

Q&A Forum › Category: ESP32 › SPIFFS and platformio
0 Vote Up Vote Down
LoetLuemmel asked 1 year ago

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

Question Tags: platformio SPIFFS
2 Answers
0 Vote Up Vote Down
LoetLuemmel answered 1 year ago

<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!

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Ok.
Great.
I’m glad you solved the issue.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.