Fix stack overflow issues on Heltec32 V3

This commit is contained in:
jacob.eva 2024-07-04 13:57:51 +01:00
parent 7c338c7caf
commit 62270a9ced
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -17,6 +17,12 @@
#include <SPI.h> #include <SPI.h>
#include "Utilities.h" #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; FIFOBuffer serialFIFO;
uint8_t serialBuffer[CONFIG_UART_BUFFER_SIZE+1]; uint8_t serialBuffer[CONFIG_UART_BUFFER_SIZE+1];