Real firmware size

vjacobs
Posts: 10
Joined: Mon May 20, 2019 8:34 am

Real firmware size

Postby vjacobs » Sat Oct 19, 2019 9:24 am

Hi all,

I've searched around for this on the docs and this forum but can't find a conclusive answer. Which firmware size counts when calculating remaining space with regards to the given partition table?

For example: I'm having a standard OTA partition table:

Code: Select all

# Espressif ESP32 Partition Table
# Name,   Type, SubType, Offset,  Size, Flags
nvs,      data, nvs,     0x9000,  0x4000,
otadata,  data, ota,     0xd000,  0x2000,
phy_init, data, phy,     0xf000,  0x1000,
factory,  0,    0,       0x10000, 1M,
ota_0,    0,    ota_0,  0x110000, 1M,
ota_1,    0,    ota_1,  0x210000, 1M,
The output of make size on my project is:

Code: Select all

Total sizes:
 DRAM .data size:   12764 bytes
 DRAM .bss  size:  105184 bytes
Used static DRAM:  117948 bytes (  62788 available, 65.3% used)
Used static IRAM:   73409 bytes (  57663 available, 56.0% used)
      Flash code:  663732 bytes
    Flash rodata:  313472 bytes
Total image size:~1063377 bytes (.bin may be padded larger)
Since 1063377 > 1048576 (1M = 1024*1024), I suppose what counts is 663732+313472=977204 bytes then?

Thanks,
Vincent

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Real firmware size

Postby WiFive » Sat Oct 19, 2019 11:34 am

No, actual bin size.

vjacobs
Posts: 10
Joined: Mon May 20, 2019 8:34 am

Re: Real firmware size

Postby vjacobs » Sat Oct 19, 2019 1:15 pm

WiFive wrote:No, actual bin size.

Thanks WiFive for your answer, but then I'm over the limit of one partition of 1M, no? (1063377 > 1048576).
I would expect a warning or error in this case?

Best
Vincent

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Real firmware size

Postby WiFive » Sun Oct 20, 2019 2:09 am

Bin may actually be smaller than image size but no I think you only get an error if you exceed flash size not partition size

Who is online

Users browsing this forum: No registered users and 88 guests