~aleteoryx/muditaos

e6db00cb0ccf7da9f251278314f185ff8385ceec — Marcin Smoczyński 4 years ago 26d75e6
[EGD-7486] Increase stack sizes

Increase stack sizes of the eink service and the system watchdog. During
stability tests stack-overflows were observed for both threads.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
(cherry picked from commit f9a23a7b58513a43dbec009277bc7106c2c92cd5)
M module-services/service-eink/ServiceEink.cpp => module-services/service-eink/ServiceEink.cpp +1 -1
@@ 24,7 24,7 @@ namespace service::eink
{
    namespace
    {
        constexpr auto ServceEinkStackDepth = 2048U;
        constexpr auto ServceEinkStackDepth = 4096U;
        constexpr std::chrono::milliseconds displayPowerOffTimeout{3800};
    } // namespace


M module-sys/SystemWatchdog/SystemWatchdog.cpp => module-sys/SystemWatchdog/SystemWatchdog.cpp +1 -1
@@ 12,7 12,7 @@ namespace sys
{
    using namespace cpp_freertos;

    static constexpr uint16_t stackDepthWords = 64;
    static constexpr uint16_t stackDepthWords = 256;

    SystemWatchdog::SystemWatchdog()
        : Thread(threadName, stackDepthWords, static_cast<UBaseType_t>(ServicePriority::High))