From a83f067af9af82f034596f6f6154f4dccf598ace Mon Sep 17 00:00:00 2001 From: JF Date: Thu, 2 Jul 2020 21:38:52 +0200 Subject: Reduce RAM memory usage by tuning the stack of the stasks and the heap allocated for FreeRTOS. Add Monitor to log the stack usage of each task. --- src/Logging/NrfLogger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Logging/NrfLogger.cpp') diff --git a/src/Logging/NrfLogger.cpp b/src/Logging/NrfLogger.cpp index 1c47a108..7ccacc82 100644 --- a/src/Logging/NrfLogger.cpp +++ b/src/Logging/NrfLogger.cpp @@ -13,7 +13,7 @@ void NrfLogger::Init() { NRF_LOG_DEFAULT_BACKENDS_INIT(); - if (pdPASS != xTaskCreate(NrfLogger::Process, "LOGGER", 512, nullptr, 0, &m_logger_thread)) + if (pdPASS != xTaskCreate(NrfLogger::Process, "LOGGER", 200, this, 0, &m_logger_thread)) APP_ERROR_HANDLER(NRF_ERROR_NO_MEM); } -- cgit v1.2.3-70-g09d2