espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.43k stars 7.38k forks source link

flash partition for esp32 dev board with 16MB and binary compiled under arduino ide #5542

Closed tradexsrl closed 2 years ago

tradexsrl commented 3 years ago

Hi i'm using arduino ide 1.8.13 and added the latest esp32 core , if i buy a 16MB esp32 board how can i choose to have for example 8 MB for app and 8 MB for SPIFFS? i need to have OTA. this problem came out because i'm using a ttgo esp32 dev board with 4MB of flash but the program i wrote for an arduino mkrgsm1400 board , adapted for esp32 , became over 1200kb (and it doesn't contain all the feature i had in mkrgsm1400...still under development) instead of 80kb when compiled....why ? library used are:

"WiFi.h" "driver/adc.h" "HX711.h" "soc/rtc.h" in the program for arduino mkr: "HX711.h"
lbernstone commented 3 years ago

esp32 has an operating system, along with large wifi & bluetooth drivers. It will always make much larger binaries than running on bare metal. Read through this issue for some pretty clear instructions how to partition.

VojtechBartoska commented 2 years ago

Hello @tradexsrl, did you solve your issue?

tradexsrl commented 2 years ago

no , project was divided into block to keep the R&D simple and at the moment i'm focusing on other stuff for sure when i will combine all blocks and if i will find problem on partition space for OTA i need to look into it again

VojtechBartoska commented 2 years ago

Ok, so then I will close this issue and if needed, open a new one as there is a issue template which gives us more information. Thanks for your quick response and good luck with your projects.