From a3aeae9c83cb5f2d246e752d99290e8d149fbefe Mon Sep 17 00:00:00 2001 From: midilab Date: Wed, 3 Jan 2024 08:03:24 -0300 Subject: [PATCH] raise freertos task stack size for more room on clock ticks programming --- src/platforms/esp32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/esp32.h b/src/platforms/esp32.h index 7e7f889..99153e3 100644 --- a/src/platforms/esp32.h +++ b/src/platforms/esp32.h @@ -9,7 +9,7 @@ hw_timer_t * _uclockTimer = NULL; //#define ATOMIC(X) portENTER_CRITICAL_ISR(&_uclockTimerMux); X; portEXIT_CRITICAL_ISR(&_uclockTimerMux); // FreeRTOS main clock task size in bytes -#define CLOCK_STACK_SIZE 2048 +#define CLOCK_STACK_SIZE 5012 // adjust for your needs, a sequencer with heavy serial handling should be large in size TaskHandle_t taskHandle; // mutex to protect the shared resource SemaphoreHandle_t _mutex;