I’m beginner in FreeRTOS…
Could some one tell me which parameters in FreeRTOS do I need to increase/decrease for stop writing me constantly “Stack overflow” on
Task Name “EthIf”? see my screen 77 — ImgBB
The stack size is a parameter passed into the function used to create the task. See the xTaskCreate() and xTaskCreateStatic() API documentation on the FreeRTOS.org site. I would post a link but am not on my computer at the moment.
In my case I adjusted stack size manually.
I adjusted on STM32CubeMX but It doesn’t work.
because stack size code was in user code block.
----------------before----------------
#define INTERFACE_THREAD_STACK_SIZE ( 350 )
/ USER CODE BEGIN OS_THREAD_NEW_CMSIS_RTOS_V2 /
memset(&attributes, 0x0, sizeof(osThreadAttr_t));
attributes.name = “EthIf”;
attributes.stack_size = INTERFACE_THREAD_STACK_SIZE; ← increase this value
attributes.priority = osPriorityLow;
osThreadNew(ethernetif_input, netif, &attributes);
/ USER CODE END OS_THREAD_NEW_CMSIS_RTOS_V2 /
----------------after----------------
#define ETHIF_STACK_SIZE 1024
/* USER CODE BEGIN OS_THREAD_NEW_CMSIS_RTOS_V2 /
memset(&attributes, 0x0, sizeof(osThreadAttr_t));
attributes.name = “EthIf”;
attributes.stack_size = ETHIF_STACK_SIZE ;
attributes.priority = osPriorityLow;
osThreadNew(ethernetif_input, netif, &attributes);
/ USER CODE END OS_THREAD_NEW_CMSIS_RTOS_V2 */
Thank you for sharing your solution.