finding out how much memory is available
Posted: Tue Dec 17, 2019 5:42 pm
hello
I am trying to write some autonomous code using the "app" api , my code is not massive but running along with 3 decks at the same time, when I increase the stack size the CF hangs on startup. I think I'm running out of memory..
the only way for me to find out is using the "task dump" feature. it works on boot, but during flight the task dump output stops after 1-2 rows. (maybe low priority)
how can I know the maximum amount of stack I can allocate to my app? if I see the available heap is down to less than 500b can it cause instability?
is it OK to increase the heap? currently I am making minor adjustments to stack sizes and flashing to see how it affects performance.
I raised this in the FW issues and was referred to https://github.com/bitcraze/crazyflie-firmware/pull/513 but didn't understand how it can be used.
I have an st-link debug adapter but I can't see how to find out the memory status even using it..
thanks for any suggestions!
I am trying to write some autonomous code using the "app" api , my code is not massive but running along with 3 decks at the same time, when I increase the stack size the CF hangs on startup. I think I'm running out of memory..
the only way for me to find out is using the "task dump" feature. it works on boot, but during flight the task dump output stops after 1-2 rows. (maybe low priority)
how can I know the maximum amount of stack I can allocate to my app? if I see the available heap is down to less than 500b can it cause instability?
is it OK to increase the heap? currently I am making minor adjustments to stack sizes and flashing to see how it affects performance.
I raised this in the FW issues and was referred to https://github.com/bitcraze/crazyflie-firmware/pull/513 but didn't understand how it can be used.
I have an st-link debug adapter but I can't see how to find out the memory status even using it..
thanks for any suggestions!