Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5273

General • Re: PicoW on Waveshare LED2 (platformIO)

$
0
0
I wonder if you might have enough RAM for this display ( 150K ) in addition to all the other RAM requirements of the program, but still leaving enough heap for lwIP to get all its buffers. I ran into that, but assumed that it was my bloated program.

If you add the following line to your CMakeLists.txt file

Code:

set_property(TARGET target  APPEND_STRING PROPERTY LINK_FLAGS "-Wl,--print-memory-usage")
The difference I see between a pico and a pico-W compile is ~30K more for the pico-W. Now with all the libraries you're pulling in, and any framework wrapper, you may actually have more bloat than I do.

Also try compile without the display, and see if its getting the 150K frame buffer static, or getting from heap at runtime.

Statistics: Posted by ronter — Tue Jan 09, 2024 2:09 am



Viewing all articles
Browse latest Browse all 5273

Trending Articles