Skip to main content
OKN
Associate III
July 7, 2026
Question

Error when converting from .tflite to .nb with the --target option

  • July 7, 2026
  • 1 reply
  • 25 views

Hello

ST Edge AI: Guide for STM32MPU 、 Section 3.2.1. Referring to “Generate NBG from TensorFlow™ Lite or ONNX,”

I converted the .tflite file downloaded from ModelZoo to .nb, but I’m getting an error.

$ /opt/ST/STEdgeAI/4.0/Utilities/linux/stedgeai generate -m ./yolov8n_256_quant_pc_uf_od_coco-person-st.tflite --target stm32mp25
ST Edge AI Core v4.0.1-20581 7ed50de05
E102(CliArgumentError): stm32mp25 not recognized as target. Supported targets are
ispu --device DEVICE
mlc
stm32f4
stm32l4
stm32l4p
stm32g4
stm32f3
stm32wb
stm32n6 [--st-neural-art]
stm32f0
stm32l0
stm32g0
stm32c0
stm32wl
stm32v8
stm32u3 [--hsp]
stm32h7
stm32f7
stm32u5
stm32l5
stm32h5
stm32c5
stm32mp157c

If you change the target name slightly, you'll get the following error:

 $ /opt/ST/STEdgeAI/4.0/Utilities/linux/stedgeai generate -m ./yolov8n_256_quant_pc_uf_od_coco-person-st.tflite --target stm32mp2
ST Edge AI Core v4.0.1-20581 7ed50de05
E102(CliArgumentError): stm32mp2 is not available

Could you tell me how to convert a .tflite file to a .nb file that can be used on the STM32MP255?

ST EdgeAI is using the latest version, 4.1.

--

Best Regards

1 reply

OKN
OKNAuthor
Associate III
July 8, 2026

Hello

I uninstalled ST EdgeAI 4.0 and reinstalled version 2.2.
For now, the issue with --target stm32mp2 has been resolved,
but an error occurred immediately after the conversion started.
 

$ /opt/ST/STEdgeAI/2.2/Utilities/linux/stedgeai generate -m ./yolov8n_256_quant_pc_uf_od_coco-person-st.tflite --target stm32mp2
ST Edge AI Core v2.2.0-20266 2adc00962

LOAD ERROR: [Errno 2] No such file or directory: '/opt/ST/STEdgeAI/2.2/Utilities/linux/lib/python3.9/site-packages/ac_ruler_db.json'

I checked the installation directory for ST EdgeAI, but ac_ruler_db.json does not exist.

When installing ST EdgeAI, I selected version 2.2 and checked all the related components before proceeding with the installation.


Do I need to install some other package?

Best Regards,
--
okn

OKN
OKNAuthor
Associate III
July 9, 2026

Hello 

Could you tell me how to convert a TFLite (.tflite) model into an NBG (.nb) format that can be used on an STM32MP255?

 

I followed the instructions in “3.2.1. Generate NBG from TensorFlow™ Lite or ONNX” in the  ST Edge AI: Guide for STM32MPU  , but stedgeai terminated with an error and the conversion failed.

 

$ /opt/ST/STEdgeAI/2.2/Utilities/linux/stedgeai generate -m ./yolov8n_256_quant_pc_uf_od_coco-person-st.tflite --target stm32mp2
ST Edge AI Core v2.2.0-20266 2adc00962

LOAD ERROR: [Errno 2] No such file or directory: '/opt/ST/STEdgeAI/2.2/Utilities/linux/lib/python3.9/site-packages/ac_ruler_db.json'

 

I'm evaluating an AI using the STM32MP255's NPU, but I'm stuck and can't seem to make any progress...


Best Regards
--
okn