From e38b215d2a5259906302a6669043d95af5894d50 Mon Sep 17 00:00:00 2001 From: Peter Harper <77111776+peterharperuk@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:02:33 +0100 Subject: [PATCH] Fix freertos sys examples (#499) Increase stack size. --- pico_w/wifi/freertos/FreeRTOSConfig_examples_common.h | 2 +- pico_w/wifi/freertos/ping/lwipopts.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pico_w/wifi/freertos/FreeRTOSConfig_examples_common.h b/pico_w/wifi/freertos/FreeRTOSConfig_examples_common.h index 2154885c1..6131aa3d2 100644 --- a/pico_w/wifi/freertos/FreeRTOSConfig_examples_common.h +++ b/pico_w/wifi/freertos/FreeRTOSConfig_examples_common.h @@ -47,7 +47,7 @@ #define configUSE_TICK_HOOK 0 #define configTICK_RATE_HZ ( ( TickType_t ) 1000 ) #define configMAX_PRIORITIES 32 -#define configMINIMAL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 256 +#define configMINIMAL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 512 #define configUSE_16_BIT_TICKS 0 #define configIDLE_SHOULD_YIELD 1 diff --git a/pico_w/wifi/freertos/ping/lwipopts.h b/pico_w/wifi/freertos/ping/lwipopts.h index 051c08aae..d42764f5e 100644 --- a/pico_w/wifi/freertos/ping/lwipopts.h +++ b/pico_w/wifi/freertos/ping/lwipopts.h @@ -9,7 +9,7 @@ #if !NO_SYS #define TCPIP_THREAD_STACKSIZE 1024 -#define DEFAULT_THREAD_STACKSIZE 1024 +#define DEFAULT_THREAD_STACKSIZE 2048 #define DEFAULT_RAW_RECVMBOX_SIZE 8 #define TCPIP_MBOX_SIZE 8 #define LWIP_TIMEVAL_PRIVATE 0