Page 1 of 1

Program flash size is too big

Posted: Mon Apr 08, 2019 9:33 am
by cbpereira
I have some doubts about program size.

The program is very simple, basically, is a client https to communicate with our servers and the program size is around the 900KB

And this is a problem because I use a chip with 2MB and can't use the partition table with two OTA definitions.

It is normal the program size 900KB?
What can I do to reduce this size?
What is the best way to implement an OTA version in a flash size with 2MB only?

Re: Program flash size is too big

Posted: Mon Apr 08, 2019 10:11 am
by jcsbanks
Turning off debug in menuconfig saves 100-200KB for me.

I found that a factory application just to update one OTA application ended up bigger than the OTA application once it had webserver/user interface/file system :)

Re: Program flash size is too big

Posted: Fri May 03, 2019 8:35 am
by cbpereira
For you the solution is to use the factory partition to the OTA and other partitition to main application updated with the factory partition, right?

Many thanks