SuperHouse / esp-open-rtos

Open source FreeRTOS-based ESP8266 software framework
BSD 3-Clause "New" or "Revised" License
1.52k stars 491 forks source link

ota upgrade max size file.bin 479kb #717

Open oremic opened 5 years ago

oremic commented 5 years ago

Hello everybody Someone can help me, my project has a size of 483kb, up to 479kb, I can upgrade with ota http client. after this size, it overwrote the flash parameters. memory size 1M Esp8266

AndreaGreco commented 5 years ago

Try compile optimize for size, -Os inside of -O2. If optimization reduce enough space you win.

_xtensa-lx106-elf-nm --print-size --size-sort your_elfname.elf

Try search in symbol list inside elf. Maybe you find function or symbol that fill your flash. Let me know if this work.