"Resizing" libraries

Yomega96
Posts: 5
Joined: Wed Oct 07, 2020 1:08 pm

"Resizing" libraries

Postby Yomega96 » Wed Oct 07, 2020 1:16 pm

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

ESP_Sprite
Posts: 9051
Joined: Thu Nov 26, 2015 4:08 am

Re: "Resizing" libraries

Postby ESP_Sprite » Wed Oct 07, 2020 2:37 pm

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.

Yomega96
Posts: 5
Joined: Wed Oct 07, 2020 1:08 pm

Re: "Resizing" libraries

Postby Yomega96 » Thu Oct 08, 2020 7:36 am

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

ESP_Sprite
Posts: 9051
Joined: Thu Nov 26, 2015 4:08 am

Re: "Resizing" libraries

Postby ESP_Sprite » Thu Oct 08, 2020 7:50 am

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.

Yomega96
Posts: 5
Joined: Wed Oct 07, 2020 1:08 pm

Re: "Resizing" libraries

Postby Yomega96 » Thu Oct 08, 2020 12:22 pm

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

Who is online

Users browsing this forum: No registered users and 46 guests