2009-10-06 08:45 PM
Stack size in Cosmic
2011-05-17 06:05 AM
Hi,
I use recursive function qsort. How can increase the size of the stack? I use Cosmic compiler with Stack Long (modsl0) memory model. Regards, krzysztof.skoczek2011-05-17 06:05 AM
2017-07-19 04:58 PM
I don't know if it helps your issue, but your question has 'recursive' and 'size of the stack' - and that really helped me a lot thanks!.
Im running FreeRTOS on STM32F1 series.
I also have a recursive function. Mine has programmed limits on its depth, but it was still causing the HardFault_Handler to execute.
I fixed it by increasing the stack size on the FreeRTOS thread. In this case form 128 to 256.
osThreadDef(Handle, StartHandler, osPriorityBelowNormal, 0, 256);
I was able to make the setting the the CubeMx configuration as well.
Thanks again!