From 9a3876366237f2cf603299d324bc53959ef4b939 Mon Sep 17 00:00:00 2001 From: Adrian Lundell Date: Thu, 8 Jan 2026 14:43:41 +0100 Subject: [PATCH] Cortex-M backend: Enable MVE in Zephyr build Before CMSIS-NN was built for zephyr w/o MVE enabled. Signed-off-by: Adrian Lundell Change-Id: Ie9c45e67d2ac2a5b6d0116bbb6f48222709e272d --- examples/arm/zephyr/prj.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/arm/zephyr/prj.conf b/examples/arm/zephyr/prj.conf index 8ec0aefa4d1..59917303d6f 100644 --- a/examples/arm/zephyr/prj.conf +++ b/examples/arm/zephyr/prj.conf @@ -1,6 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. -# Copyright 2025 Arm Limited and/or its affiliates. +# Copyright 2025-2026 Arm Limited and/or its affiliates. # # SPDX-License-Identifier: Apache-2.0 @@ -34,3 +34,7 @@ CONFIG_ETHOS_U=y CONFIG_EXECUTORCH_METHOD_ALLOCATOR_POOL_SIZE=262144 # Ethos-U scratch memory requirements scale with the compiled network. CONFIG_EXECUTORCH_TEMP_ALLOCATOR_POOL_SIZE=1572864 + +# Enable Helium (MVE) builds of CMSIS-NN by selecting the FPU and hard-float ABI. +CONFIG_FPU=y +CONFIG_FP_HARDABI=y