aboutsummaryrefslogtreecommitdiff
path: root/applications/freertos/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'applications/freertos/main.cpp')
-rw-r--r--applications/freertos/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/freertos/main.cpp b/applications/freertos/main.cpp
index 095af50..b926d1e 100644
--- a/applications/freertos/main.cpp
+++ b/applications/freertos/main.cpp
@@ -39,6 +39,10 @@ using namespace InferenceProcess;
* InferenceJob
****************************************************************************/
+#define TENSOR_ARENA_SIZE 200000
+
+__attribute__((section(".bss.NoInit"), aligned(16))) uint8_t inferenceProcessTensorArena[TENSOR_ARENA_SIZE];
+
namespace {
struct xInferenceJob : public InferenceJob {
@@ -197,7 +201,7 @@ uint8_t expectedData[] = {
void inferenceProcessTask(void *pvParameters) {
QueueHandle_t queue = reinterpret_cast<QueueHandle_t>(pvParameters);
- class InferenceProcess inferenceProcess;
+ class InferenceProcess inferenceProcess(inferenceProcessTensorArena, TENSOR_ARENA_SIZE);
while (true) {
xInferenceJob *job;