From 4974c4cf3a4d1f1cd1fb1c28599e44ee2c412caa Mon Sep 17 00:00:00 2001 From: David Crocker Date: Tue, 11 Feb 2025 09:49:18 +0000 Subject: [PATCH] Increased main task stack size --- src/Platform/Tasks.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Platform/Tasks.cpp b/src/Platform/Tasks.cpp index e24f5d40e..a4d6933d4 100644 --- a/src/Platform/Tasks.cpp +++ b/src/Platform/Tasks.cpp @@ -40,12 +40,12 @@ const char memPattern = (char)0xA5; // this must be the same pattern as FreeRTO // 1. After running delta auto calibration with Move debugging enabled // 2. We create an array of (2 * MaxAxes^2) floats when inverting the movement matrix for Core kinematics. #if SAME70 -// On the SAME70 we use matrices of doubles when doing auto calibration, so we need 1800 words of stack even when MaxAxes is only 15 -constexpr unsigned int MainTaskStackWords = max(1800, (MaxAxes * MaxAxes * 2) + 550); +// On the SAME70 we use matrices of doubles when doing auto calibration, so we need 1800 words of stack even when MaxAxes is only 15 (now 1860 after increasing GCodeReplyLength) +constexpr unsigned int MainTaskStackWords = max(1860, (MaxAxes * MaxAxes * 2) + 610); #else // On other processors we use matrices of floats when doing auto calibration -// Increase minimum stack words to 1370 for WPA Enterprise support -constexpr unsigned int MainTaskStackWords = max(1370, (MaxAxes * MaxAxes * 2) + 550); +// Increase minimum stack words to 1370 for WPA Enterprise support (now 1430 after increasing GCodeReplyLength) +constexpr unsigned int MainTaskStackWords = max(1430, (MaxAxes * MaxAxes * 2) + 610); #endif static Task mainTask;