• 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

ESP32 memory problem?

Q&A Forum › Category: ESP32 › ESP32 memory problem?
0 Vote Up Vote Down
Richard Funnell asked 3 years ago

Hi, can somebody please help?
I have a program written with Platformio, that uses data saved to and read with Spiffs. This was working ok, but if I add to the program, the esp32 keeps rebooting after it has finished compiling, I have searched on the forum but can’t see an answer.
When uploading the code which compiles ok I noticed:
RAM:   [=         ]  13.7% (used 45040 bytes from 327680 bytes)
Flash: [==========]  96.1% (used 1259074 bytes from 1310720 bytes)
Building .pio\build\esp32doit-devkit-v1\firmware.bin
Is this telling me that my program is to big or saving too much data?
any help would be useful.
many thanks
 
 

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Richard.
Maybe the problem is in the code?? Probably there’s something wrong in the code that keeps the ESP32 rebooting. What does your code do?
Regards,
Sara

0 Vote Up Vote Down
Richard Funnell answered 3 years ago

Hi Sara, thank you for replying.
The program is based on 4.1 of the webserver with inputs.
Mine has got 5 input sections loading 2 numbers and a date field on the html.
The main is 665 lines long. 
There is a delay at the end of the program which will be a day thing, at the moment it is shorter to test.
Part of the program checks the the numbers and reports by email when they reach a certain level.
If I only check the first section it runs ok, line 528, ( the other sections are commented out) but if I check the second section as well, line 553, it comes up with the error.
Not very helpful when you don’t know the code I know. 
What is the FLASH memory? is it holding the html, js, & css files as well as the program? and holds the data in Spiffs.?
regards
 

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Richard.
I’m so sorry for taking so long to get back to you on this issue.
I may have missed your question among all the other questions.
Do you still have the problem? Or have you progressed? 
Regards,
Sara

0 Vote Up Vote Down
Richard Funnell answered 3 years ago

It’s fine now, you can close this.
Saving all the data to a SD card now.
 
Thank you.

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

That’s great!
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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.