-
-
Notifications
You must be signed in to change notification settings - Fork 431
Custom partitions.csv on ESP32 is ignored #2526
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
Hi @aIecxs. Arduino IDE doesn't know or care anything about partitions. That is a specific of the implementation of the "esp32" boards platform. Arduino IDE simply uses the abstract configuration data provided by the platform. If the platform provides inaccurate data, then that is a problem in the platform. You can see right here where the "esp32" platform tells Arduino IDE that there is 1310720 bytes of available program memory: https://github.com/espressif/arduino-esp32/blob/3.0.5/boards.txt#L1198
Note that this value is adjusted by the setting of the Tools > Partition Scheme menu (1310720 is the value used when you have selected Tools > Partition Scheme > Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)): https://github.com/espressif/arduino-esp32/blob/3.0.5/boards.txt#L1241-L1291
If the custom partition provides a different amount of program memory, you would need to edit this line accordingly, and select Tools > Partition Scheme > Custom from the Arduino IDE menus:
|
no, sorry. according to the documentation that's not how it works. partitioning must ensured from sketch entirely. modification of boards.txt is not acceptable because this is lost during updates. |
Describe the problem
Custom partitions on ESP32 using ESP-IDF (not using Arduino ESP32) does not calculate app memory correctly on Windows Arduino IDE 2.3.3. The partitions.csv file in Sketch Directory is parsed and checked for proper alignment, but uploading app failes with Sketch too big;
(logfile is modified)
log.txt
To reproduce
create partitions.csv in Sketch Directory. upload big sketch with board setting default partition scheme.
https://docs.espressif.com/projects/arduino-esp32/en/latest/tutorials/partition_table.html#using-a-custom-partition-scheme
Expected behavior
Sketch with size < partition size should fit in app partition. Usage in % should calculated correctly by partition size from custom partitions.csv
Arduino IDE version
2.3.3
Operating system
Windows
Operating system version
10 x64 22H2
Additional context
I have checked with ESP32 boards platform developers, they are suggesting it's either issue with Arduino IDE or usage problem.
espressif/arduino-esp32/issues/10120
Issue checklist
The text was updated successfully, but these errors were encountered: