Tensor Lite Micro Package Build issue

Created at 2025-03-10 18:39:15

Hi @ QingChuanWS,

I am currently working on the RT-Thread Vision Board(cortex M85) Camera project. We are trying to run an open-source ML model ( MTTS-CAN) using the TensorFlow Lite Micro (TFLM) package on this board.

We have added the latest TFLM package to our project and tried building with both:

  • (✔) Using TensorFlow Lite reference operations
  • (✔) Using TensorFlow Lite CMSIS NN operations

However, during the build process, we are facing the following errors:

../packages/TensorflowLiteMicro-latest/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/BasicMathFunctions/arm_elementwise_add_s8.c:35:10: fatal error: arm_helium_utils.h: No such file or directory
   35 | #include "arm_helium_utils.h"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [packages/TensorflowLiteMicro-latest/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/BasicMathFunctions/subdir.mk:21: packages/TensorflowLiteMicro-latest/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/BasicMathFunctions/arm_elementwise_add_s8.o] Error 1
make: *** Waiting for unfinished jobs....
"make -j8 all" terminated with exit code 2. Build might be incomplete.

System Details

  • Board: RT-Thread Vision Board
  • Processor: (Specify whether Cortex-M85)
  • RT-Thread Version: (Run pkgs --list to get the version)
  • TFLM Version: (Latest from RT-Thread package manager)

    Steps We've Tried

  1. Verified CMSIS-NN is installed (pkgs --update)
  2. Tested with older versions(v1.0.1, v1.0.0.0) of TFLM but build got failed for those also.

Despite these, we are still getting errors. Could you please provide any insights or suggest a fix?

Thanks!

更多

Follower
0
View
1k
4 Answers
bonustiller
bonustiller 2026-03-17

It would help if you could share a bit more detail (error logs, board type, RT-Thread version, etc.). That makes it much easier for others to pinpoint the issue.
In general, many RT-Thread problems are related to toolchain setup or configuration, so double-check your build environment and dependencies as well.
https://www.rt-thread.io/document/site/drift boss

seumtrek
seumtrek 2026-03-24

Hi,

It looks like a mismatch between TFLM and the CMSIS package being pulled in by RT-Thread. The missing arm_helium_utils.h typically means the build is trying to use Helium (MVE) kernels, but the CMSIS package doesn’t include them.

You could try checking whether your board/toolchain actually enables MVE (Helium) flags (e.g. -march=armv8.1-m.main+mve.fp slope). If not, those files shouldn’t be compiled.
Hope that helps narrow it down

tragicstrider
tragicstrider 2026-04-01

I see you're running a TFLite model on the Vision Board! Have you tried different optimization levels within TFLite? I found that adjusting the optimization flags significantly impacted build times. In my experience, reducing optimization led to faster compiles, although performance suffered slightly. Any experience with snow rider

AnnAdams
AnnAdams 6天前

That's quite a techy situation you're wrestling with! Building with TFLM can sometimes feel like herding cats. I can see you're diving deep into embedded ML which is cool. Ever think about optimizing kernels manually for performance? I remember a time when I was trying to get a neural network to classify different types of fruit on a Raspberry Pi, resource management became critical, and everything slowed to a crawl and debugging felt endless. After all that the thing just crashed and became a Slither io useless.

Write Your Answer

Log in to publish your answer,Click here to log in.

Create
Post

Share