-
Notifications
You must be signed in to change notification settings - Fork 7.6k
The same sketch on ESP32 is much bigger than sketch on ESP8266 #1521
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
Comments
The esp32 does more so it's unfair to think they should be of similar size. All the peripherals and dual core code takes up more space at run time. #1367 The general answer is you have to accept that code compiled on ESP32 will be bigger. Either refactor code or board manufacturers need to use larger flash memory. |
@jesse-schein I understand... but 2 times bigger? Update: |
There is a "partition scheme" option in tools if you choose the esp32-dev board. If you are done venting, please close the issue. |
@Deimos1994 What is the chance that the reason for the increased memory footprint is that the propitiatory WiFi code is causing the blot. And that the reason for this bloat is espionage? The WiFi code is a feeder system for Chinese Intelligence? Everyone of these IOT devices could be used as spying devices. Chuck. |
Hardware:
Board: ESP32 vs ESP8266
Core Installation/update date: ESP32 git from 21/jun/2018 vs ESP8266 CoreV2.4.0)
IDE name: Arduino IDE
Flash Frequency: 40Mhz
Upload Speed: 115200
Description:
Sketch on ESP32 is much bigger (about 2 times bigger).
Here is WiFiMulti as an example.
Sketch ESP8266:
RESULT:
Sketch ESP32:
RESULT:
537078 bytes vs 254175 byte is pretty big difference.
I doubt that I the first one who noticed this, but I did not find any info about this issue.
The text was updated successfully, but these errors were encountered: