Loading...
 

STM32MP1 support available in SW4STM32

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world.
And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4; you can download a short video showcasing this on the ac6-tools website (registration required).

System Workbench for STM32


FreeRTOS Heap / Stack / Memory Management

There are few information to detect the reason of your bug but here a little explanation of what stack and heap memories are:
stack memory is used by cpu to store all the local array or pointers needed to manage the returning of function calls (think of an interrupt that is served so the cpu must store the right memory address to recall when its routine terminate). when you use an rtos usually define a priori the amount of memory reserved for each task. if you don’t need an rtos the stack memory is all the free ram memory you leave in your program.

heap memory is a kind of reserved memory to manage the dynamic memory access. When you have memory space problem you can decide to use the amount of needed memory in sharing way calling a malloc() or calloc(). In such a way you request to get it for a short time and then release that amount calling free().
The size of that memory is always defined,

Hope could help!