Page 1 of 1

"Resizing" libraries

Posted: Wed Oct 07, 2020 1:16 pm
by Yomega96
Hi to all,
I'm developing a project using 2 ESP32-WROOM modules.
ESP1 is using Bluetooth classic and ESP-NOW.
ESP2 is using only ESP-NOW.
Connections are working great.

But when compiling for ESP1 I get flash to 95%, because of the huge WiFi library, and 90% of application algorithm is still to develop.
Is there a way to use only portion of this library?
For ESP-NOW usage, is necessary to have the WiFi in station mode.
But does this "Station mode" require the entire WiFi library?

Thanks to everyone.
Yomega96

Re: "Resizing" libraries

Posted: Wed Oct 07, 2020 2:37 pm
by ESP_Sprite
What SDK are you using? If ESP-IDF, are you sure you're not filling up 95% of the app partition, instead of the entire flash? If that's the case, you can tweak the partition sizes and get some of your flash back.

Re: "Resizing" libraries

Posted: Thu Oct 08, 2020 7:36 am
by Yomega96
ESP_Sprite wrote: What SDK are you using? If ESP-IDF, are you sure you're not filling up 95% of the app partition, instead of the entire flash? If that's the case, you can tweak the partition sizes and get some of your flash back.
Sorry, I'm relatively a newbie on this sector.
To code I use VS Code, with PlatformIO extension.
Actually, when I compile the ESP1 code, i get 95% "Application" and 14% "RAM"

Thanks

Re: "Resizing" libraries

Posted: Thu Oct 08, 2020 7:50 am
by ESP_Sprite
I don't know PlatformIO that well, so I can't tell you how to do that... but I'd suggest to look into resizing the partitions, as I mentioned before.

Re: "Resizing" libraries

Posted: Thu Oct 08, 2020 12:22 pm
by Yomega96
ESP_Sprite wrote: I don't know PlatformIO that well, so I can't tell you how to do that... but I'd suggest to look into resizing the partitions, as I mentioned before.
That's enough for me.
Knowing that I can increase/decrease partitions is a good news.
Thanks