App. Stacksize

Post here to get support
Post Reply
sAz
Beginner
Posts: 27
Joined: Wed Jun 10, 2020 5:35 pm

App. Stacksize

Post by sAz »

Hi everyone,

I am implementing an algorithm on the Crazyflies using the app. entry point.

There we have to define APP_STACKSIZE (default 300) as described here https://www.bitcraze.io/documentation/r ... app_layer/.

How can I determine the right stack size for my application?

Thanks
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: App. Stacksize

Post by kimberly »

You can check this pretty easily! So you can use the default stack size (or one that is larger) at first, compile and flash the program, and check with the console tab in the cfclient how much RAM it actually takes up (with the button 'Task Dump). After that, you can reduce your APP_STACKSIZE to a value little above that :)
Post Reply