My esp-idf based project that has homekit & rainmaker returns below error while uploading.
Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
RAM: [= ] 13.4% (used 44048 bytes from 327680 bytes)
Error: The program size (1105770 bytes) is greater than maximum allowed (1048576 bytes)
Flash: [=====*** [checkprogsize] Explicit exit, status 1=====] 105.5% (used 1105770 bytes from 1048576 bytes)
I investigated some topics :
opened 06:37AM - 07 Jun 18 UTC
closed 03:45AM - 08 Jul 18 UTC
### Hardware:
Board: Generic ESP32 Dev Module
Core Installation/update d… ate: Latest
IDE name: PlatformIO
Flash Frequency: 40Mhz (default?)
Upload Speed: 115200
### Description:
For some projects, 1.25MB of Flash memory to store your program code is not enough. Like the title suggests, is there any way to increase the amount of flash memory available? Could we kill off the OTA and OTA update partitions if we're not using it? Personally, I don't know what OTA is nor do I want to use it, so to have a dedicated partition just wasting space is kinda silly in my eyes.
I did see on the ESP32 forums a way to increase the 1.25MB partition to 2MB but I'm not sure if that was applicable for ESP32 or ESP8266 only.
### Sketch:
N/A
### Debug Messages:
N/A
opened 01:02PM - 18 Dec 17 UTC
closed 10:13PM - 25 May 18 UTC
feature
# See http://docs.platformio.org/en/latest/platforms/espressif32.html#partition-… tables
-----------
### Configuration
**Operating system**: Windows 7 Ultimate 64bit Service Pack 1
**PlatformIO Version** (`platformio --version`): 3.5.0rc10
**Visual Studio Code Version**: 1.18.0
**Atom Version**: 1.23.1 x64
### Description of problem
Partition sizes doesn't change even if default.csv is changed.
#### Steps to Reproduce
Following this [issue](https://github.com/espressif/arduino-esp32/issues/703) I tried to change the partition sizes on my ESP32 Dev Module.
The changed default.csv:
> # Name, Type, SubType, Offset, Size, Flags
> nvs, data, nvs, 0x9000, 0x5000,
> otadata, data, ota, 0xe000, 0x2000,
> app0, app, ota_0, 0x10000, 0x150000,
> app1, app, ota_1, 0x160000,0x150000,
> eeprom, data, 0x99, 0x310000,0x1000,
> spiffs, data, spiffs, 0x311000,640K,
But after uploading the partition sizes are still the default ones:
> App partition table:
> SubType 10 Address 0x010000 Size 0x140000 Encryption 0 Label app0
> SubType 11 Address 0x150000 Size 0x140000 Encryption 0 Label app1
> Data partition table:
> SubType 02 Address 0x009000 Size 0x005000 Encryption 0 Label nvs
> SubType 00 Address 0x00e000 Size 0x002000 Encryption 0 Label otadata
> SubType 99 Address 0x290000 Size 0x001000 Encryption 0 Label eeprom
> SubType 82 Address 0x291000 Size 0x16f000 Encryption 0 Label spiffs
Then I tried the exact same procedure on Arduino IDE and the partition size changed to:
> App partition table:
> Type: 00 SubType 10 Address 0x010000 Size 0x150000 Encryption 0 Label app0
> Type: 00 SubType 11 Address 0x160000 Size 0x150000 Encryption 0 Label app1
> Data partition table:
> Type: 01 SubType 02 Address 0x009000 Size 0x005000 Encryption 0 Label nvs
> ype: 01 SubType 00 Address 0x00E000 Size 0x002000 Encryption 0 Label otadata
> Type: 01 SubType 99 Address 0x310000 Size 0x001000 Encryption 0 Label eeprom
> Type: 01 SubType 82 Address 0x311000 Size 0x0A0000 Encryption 0 Label spiffs
Going back to PlatformIO, I uploaded my code again from there and the changed partition sizes are still valid.
It seems that PlatformIO doesn't change the partition size at all. Or is my method to change the partition sizes wrong?
and I created new partition file which is name custompart.csv and I copied to root
#Name , Type, SubType, Offset, Size, Flags
#Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
#Name , Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x372000,
eeprom, data, 0x99, 0x382000, 0x1000,
spiffs, data, spiffs, 0x383000, 0x7D000,
I added these line to platformio.ini
[env:custom_table]
board_build.partitions = $PROJECT_DIR/custompart.csv
But when I try to upload It returns still same error and same partition size.
What is the reason of this ? Why my partition file is not effective ?