Page 1 of 1

APP Binary file size biged than 1M,How to bulid and download?

Posted: Mon Nov 13, 2017 9:06 am
by zhoupeng
partition tables, ESP32 DOWNLOAD TOOL V3.4.9.2,

Re: APP Binary file size biged than 1M,How to bulid and download?

Posted: Mon Nov 13, 2017 1:53 pm
by kolban
I believe that the default partition size for factory app has a size of 1MByte ... see

http://esp-idf.readthedocs.io/en/latest ... ables.html

When I have an app larger than this, I create a custom partition file and specify a larger size (the ESP32 has 4MByte of flash). You can define the partition configuration file you wish to use in the "make menuconfig" settings.

Re: APP Binary file size biged than 1M,How to bulid and download?

Posted: Tue Nov 14, 2017 6:21 am
by zhoupeng
kolban wrote:I believe that the default partition size for factory app has a size of 1MByte ... see

http://esp-idf.readthedocs.io/en/latest ... ables.html

When I have an app larger than this, I create a custom partition file and specify a larger size (the ESP32 has 4MByte of flash). You can define the partition configuration file you wish to use in the "make menuconfig" settings.
thank you,i will try to do.and i have tried to modify "partitions_singleapp.csv"and modify the factory APP size to 2M,but it is err when download throng the ESP32 download tool v3.4.9.2. its right?

Re: APP Binary file size biged than 1M,How to bulid and download?

Posted: Tue Nov 14, 2017 9:50 am
by jumjum123
I'm working with a table like this:

Code: Select all

#Name,      Type, SubType, Offset,    Size, Flags
#boot,      data, ,        0x1000,    0x1000
partition,  data, ,        0x8000,    0x1000
nvs,        data, nvs,     0x9000,    0x4000
otadata,    data, ota,     0xd000,    0x2000
phy_init,   data, phy,     0xf000,    0x1000
factory,    app,  factory, 0x10000,   0x140000
ota_0,      app,  ota_0,   0x150000,  0x140000
js_code,    data, ,        0x2f0000,  0x10000
storage,    data, ,        0x300000,  1M
I would recommend to create your own table and not to edit standard table.

Re: APP Binary file size biged than 1M,How to bulid and download?

Posted: Tue Nov 14, 2017 10:00 am
by zhoupeng
jumjum123 wrote:I'm working with a table like this:

Code: Select all

#Name,      Type, SubType, Offset,    Size, Flags
#boot,      data, ,        0x1000,    0x1000
partition,  data, ,        0x8000,    0x1000
nvs,        data, nvs,     0x9000,    0x4000
otadata,    data, ota,     0xd000,    0x2000
phy_init,   data, phy,     0xf000,    0x1000
factory,    app,  factory, 0x10000,   0x140000
ota_0,      app,  ota_0,   0x150000,  0x140000
js_code,    data, ,        0x2f0000,  0x10000
storage,    data, ,        0x300000,  1M
I would recommend to create your own table and not to edit standard table.
it is my partition table:

Code: Select all

# Name,   Type, SubType, Offset,  Size, Flags
nvs,      data, nvs,     0x9000,  0x4000,
phy_init, data, phy,     0xf000,  0x1000,
factory,  app,  factory, 0x10000, 2M,

Re: APP Binary file size biged than 1M,How to bulid and download?

Posted: Wed Nov 15, 2017 5:39 pm
by kolban
@zhoupeng ... personally, Ive never used anything other than the esptool Python script through the ESP-IDF build system. Does using the ESP-IDF built and flash system work for you? If not, can you post the underlying errors that are reported?