Skip to content

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

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

Closed
tradexsrl opened this issue Aug 14, 2021 · 4 comments

Comments

@tradexsrl
Copy link

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:
<TinyGsmClient.h>
"WiFi.h"
<esp_wifi.h>
<esp_bt.h>
"driver/adc.h"
<Adafruit_Sensor.h>
<DHT.h>
<DHT_U.h>
<ArduinoMqttClient.h>
"HX711.h"
"soc/rtc.h"
<ArduinoOTA.h>
<ArduinoHttpClient.h>

in the program for arduino mkr:
<MKRGSM.h>
<Adafruit_Sensor.h>
<DHT.h>
<DHT_U.h>
<ArduinoUniqueID.h>
<ArduinoMqttClient.h>
<ArduinoLowPower.h>
<Arduino_MKRGPS.h>
"HX711.h"
<ArduinoOTA.h>
<ArduinoHttpClient.h>

@lbernstone
Copy link
Contributor

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
Copy link
Contributor

Hello @tradexsrl, did you solve your issue?

@VojtechBartoska VojtechBartoska added the Resolution: Awaiting response Waiting for response of author label Mar 30, 2022
@tradexsrl
Copy link
Author

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
Copy link
Contributor

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.

@VojtechBartoska VojtechBartoska removed the Resolution: Awaiting response Waiting for response of author label Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants