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
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
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
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
It’s fine now, you can close this.
Saving all the data to a SD card now.
Thank you.