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

zhoupeng
Posts: 35
Joined: Sun Sep 24, 2017 1:31 pm

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

Postby zhoupeng » Mon Nov 13, 2017 9:06 am

partition tables, ESP32 DOWNLOAD TOOL V3.4.9.2,

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

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

Postby kolban » Mon Nov 13, 2017 1:53 pm

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.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

zhoupeng
Posts: 35
Joined: Sun Sep 24, 2017 1:31 pm

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

Postby zhoupeng » Tue Nov 14, 2017 6:21 am

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?

jumjum123
Posts: 199
Joined: Mon Oct 17, 2016 3:11 pm

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

Postby jumjum123 » Tue Nov 14, 2017 9:50 am

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.

zhoupeng
Posts: 35
Joined: Sun Sep 24, 2017 1:31 pm

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

Postby zhoupeng » Tue Nov 14, 2017 10:00 am

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,

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

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

Postby kolban » Wed Nov 15, 2017 5:39 pm

@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?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Who is online

Users browsing this forum: No registered users and 108 guests