From 99f1942c3edd0c3c4bcfd4017b92ccc579de5d17 Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Thu, 1 Jul 2021 22:15:02 +0200 Subject: Increased heap and FreeRTOS stack Tensorflow lite micro has increased the size of the MicroProfiler. As a consequence the FreeRTOS application needs to increase the stack size allocate from the heap. Change-Id: I8e4df44767edaecee27d9571319ef72da5937a3b --- applications/freertos/main.cpp | 2 +- targets/corstone-300/platform.scatter | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/freertos/main.cpp b/applications/freertos/main.cpp index 0010b70..5abcca2 100644 --- a/applications/freertos/main.cpp +++ b/applications/freertos/main.cpp @@ -232,7 +232,7 @@ int main() { // Create inferenceProcess tasks to process the queued jobs for (int n = 0; n < NUM_INFERENCE_TASKS; n++) { taskParams[n] = ProcessTaskParams(inferenceProcessQueue, inferenceProcessTensorArena[n], arenaSize); - ret = xTaskCreate(inferenceProcessTask, "inferenceProcessTask", 3 * 1024, &taskParams[n], 3, nullptr); + ret = xTaskCreate(inferenceProcessTask, "inferenceProcessTask", 8 * 1024, &taskParams[n], 3, nullptr); if (ret != pdPASS) { printf("FreeRTOS: Failed to create 'inferenceProcessTask%i'\n", n); exit(1); diff --git a/targets/corstone-300/platform.scatter b/targets/corstone-300/platform.scatter index 06a749a..8a6bc88 100644 --- a/targets/corstone-300/platform.scatter +++ b/targets/corstone-300/platform.scatter @@ -70,7 +70,7 @@ #endif #ifndef HEAP_SIZE -#define HEAP_SIZE 0x8000 +#define HEAP_SIZE 0x10000 #endif #if defined(TRUSTZONE_BUILD) && !defined(ETHOSU_TEST) -- cgit v1.2.1