aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2021-07-01 22:15:02 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2021-07-01 22:15:02 +0200
commit99f1942c3edd0c3c4bcfd4017b92ccc579de5d17 (patch)
tree4944e97ae12561ee3cb9b130702ab555797a89e5
parentcbf1d6dced259afec30d8b3adb8838956a7ecb95 (diff)
downloadethos-u-core-platform-99f1942c3edd0c3c4bcfd4017b92ccc579de5d17.tar.gz
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
-rw-r--r--applications/freertos/main.cpp2
-rw-r--r--targets/corstone-300/platform.scatter2
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)