From 62270a9ced9e014cf62317fa49bfa798f04d18dc Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Thu, 4 Jul 2024 13:57:51 +0100 Subject: [PATCH] Fix stack overflow issues on Heltec32 V3 --- RNode_Firmware_CE.ino | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RNode_Firmware_CE.ino b/RNode_Firmware_CE.ino index ef9fe1d..5686ac7 100644 --- a/RNode_Firmware_CE.ino +++ b/RNode_Firmware_CE.ino @@ -17,6 +17,12 @@ #include #include "Utilities.h" +#if BOARD_MODEL == BOARD_HELTEC32_V3 +// Default stack size for loop function on Heltec32 V3 is not large enough, +// must be increased to 11kb to prevent crashes. +SET_LOOP_TASK_STACK_SIZE(11 * 1024); // 11KB +#endif + FIFOBuffer serialFIFO; uint8_t serialBuffer[CONFIG_UART_BUFFER_SIZE+1];