-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp8266 chip- Framework taking 91% of max firmware size on 64bit systems a jump from about 78% on 32 bit #254
Comments
compiling for Arduino (whether it's the ESP8266 or ESP32) is always 32-bit, using gcc. I think the problem is the size of SPIFFS and not the program size since you're trying to serialize 8 byte values into JSON (your To make it fit you could adjust the partitions (Rick shows how in the README) to allocate more of the flash space. I would also strongly recommend to switch to ESP32's if you can. The ESP8266 is about 8 years old now and starting to age, and the ESP32's have so much headroom for the same price. The web UI will be so much responsive too. |
Will give it a try thanks! |
It did not help much. But something happened the framework alone used to compile to about 78% a month ago now its at 91%. The only change is library updates. |
I disabled PROGMEM and now it fits, not sure what other problems I will run into. |
Ok so if I get this right, a few weeks ago building on ESP8266 worked fine but now the image size is too large? esp8266-react hasn't been modified so it's most likely the external libraries, including the latest arduino core. If that's the case you can modify the |
I built master a few days ago and it was up in the 90% range on esp8266....
honestly can't remember if that is normal or not because it's been so long
since I've since i've actively used it.
Poddys suggestion of downgrading the pio libs should help determine I'd
it's a lib change which caused it.
Do you still target 8266 proddy?
…On Sat, 28 Aug 2021, 10:19 Proddy, ***@***.***> wrote:
Ok so if I get this right, a few weeks ago building on ESP8266 worked fine
but now the image size is too large? esp8266-react hasn't been modified so
it's most likely the external libraries, including the latest arduino core.
If that's the case you can modify the platformio.ini to go back and use
the previous versions, e.g. platform = ***@***.*** will use the
older arduino core 2.7.4. See if that makes a difference to the image size.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#254 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKE4VFPCML6Y53KVUICSG3T7CS25ANCNFSM5CZPECYA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Nope, I'm exclusive ESP32 now. Made the switch a year ago. I was spending too much time tweaking my code to make it fit into the ESP8266's 4MB ram. And an ESP32 is only like 4 euros now. https://github.com/emsesp/EMS-ESP32/tree/dev |
It used to be 78% so something did happen. |
In June l had a branch that compiled to 78%. Now the same branch compiles to 91% looks there might have been some changes in Arduino libraries or something |
I am experiencing a new problem possibly due to data types for long and pointers sizes between 32bit and 64bit systems.
This is resulting in a bigger firmware size on 64bit systems leaving no room for the actual project particularly on esp8266 unit
I do not know if there is any optimization that can be done but I am having to stop using the esp8266 and move to esp32 chip which has more memory to circumvent this issue.
Please take a look at https://docs.oracle.com/cd/E19205-01/819-5265/bjami/index.html
to see data size comparison, I think the long and pointer are killing us.
The text was updated successfully, but these errors were encountered: