Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

Dynamically manage thread stack size

$
0
0

Hi,

A project we're working on has started to run into issues where we do not have enough ram, due to requiring a double buffer for our display.

I'm trying to understand how the stack memory is used and if it is possible to dynamically load and unload a thread and if that will also free up any framework stack memory assigned to the thread or is that done globally to the bsp?

For example, upon startup we detect a USB stick and some actions can be performed before restarting. Most other functionality isn't required so doesn't need to be loaded. If no USB is detected on startup, this could be removed before loading the other threads, which would give us enough space.

We also have different boards that can be added or removed, so a particular thread could be loaded based on which board is detected.

Any advice will be greatly appreciated.

Thanks,

Richard.


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>