Program flash size is too big

cbpereira
Posts: 2
Joined: Mon Apr 08, 2019 8:51 am

Program flash size is too big

Postby cbpereira » Mon Apr 08, 2019 9:33 am

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?

jcsbanks
Posts: 305
Joined: Tue Mar 28, 2017 8:03 pm

Re: Program flash size is too big

Postby jcsbanks » Mon Apr 08, 2019 10:11 am

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 :)

cbpereira
Posts: 2
Joined: Mon Apr 08, 2019 8:51 am

Re: Program flash size is too big

Postby cbpereira » Fri May 03, 2019 8:35 am

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

Who is online

Users browsing this forum: No registered users and 136 guests