2019-12-24 12:44 AM
I am using stm32cubeIDE for FreeRTOS on stm32f429. As cubemx has option to adjust heap and stack size on generating code in "Project Manager" project tab. While FreeRTOS has also column of heap adjustment in config parameter in cubeMX.
Question:
Please anyone suggest to best way to avoid any heap/stack overflow.
Thanks to all
2019-12-24 07:56 PM
There are two independent heaps:
FreeRTOS has also an option to use the C (malloc) as its heap, in this case there is only one heap and FreeRTOS size parameter is not used.
Start from reading this discussion:
https://community.st.com/s/question/0D50X0000BB1eL7SQJ/bug-cubemx-freertos-projects-corrupt-memory
-- pa
2019-12-24 11:06 PM
You can manually change the heap size in the flash programming file.. stm32F742AG.lds for example...