Partition max APP size with OTA (nothing else)

ripper121
Posts: 7
Joined: Wed Sep 19, 2018 9:28 am

Partition max APP size with OTA (nothing else)

Postby ripper121 » Thu Nov 30, 2023 10:39 pm

Hi,

is this the bigges possible App size with OTA Function?

I load the "OTA" from SD Card.

My Partition Table:

Code: Select all

# Name,	Type,	SubType,	Offset,	Size,	Flags
nvs,	data,	nvs,	0x9000,	0x5000,	
otadata,	data,	ota,	0xe000,	0x2000,	
app0,	app,	ota_0,	0x10000,	0x1f0000,	
app1,	app,	ota_1,	0x200000,	0x1f0000,	
Is this the Max for an 4 MBit ESP32 Chip?

lbernstone
Posts: 832
Joined: Mon Jul 22, 2019 3:20 pm

Re: Partition max APP size with OTA (nothing else)

Postby lbernstone » Thu Nov 30, 2023 11:37 pm

That's the largest app size you can get. You can use the unaligned space more efficiently for nvs (or have a second nvs).

Code: Select all

# Name,   Type, SubType, Offset,  Size, Flags
otadata,  data, ota,     0x9000,  0x2000,
app0,     app,  ota_0,   0x10000, 0x1f0000,
app1,     app,  ota_1,   0x200000,0x1f0000,
nvs,      data, nvs,     0x3f0000,  0x10000,
You don't necessarily need two OTA partitions. You can have one minimal factory partition that always boots to a loader program, and then you should be able to tell it to reboot into the ota.

Code: Select all

nvs,      data, nvs,     0x9000,  0x5000,
otadata,  data, ota,     0xe000,  0x2000,
factory,  app, factory, 0x10000, 0x100000
app0,     app,  ota_0,   0x110000, 0x2f0000,

ripper121
Posts: 7
Joined: Wed Sep 19, 2018 9:28 am

Re: Partition max APP size with OTA (nothing else)

Postby ripper121 » Fri Dec 01, 2023 9:19 am

Butt your APP Size is also 0x1f0000 so not bigger then in my example.
Or Im wrong?

I need the biggest possible app Size with OTA capability.

lbernstone
Posts: 832
Joined: Mon Jul 22, 2019 3:20 pm

Re: Partition max APP size with OTA (nothing else)

Postby lbernstone » Fri Dec 01, 2023 5:43 pm

It is the same, because that is the largest app size you can get with 2 ota partitions. Read my message again... I am trying to offer you other solutions.

Who is online

Users browsing this forum: No registered users and 39 guests