Skip to main content
Visitor II
January 28, 2026
Question

STM32CubeIDE/MX Issues with Cube-AI

  • January 28, 2026
  • 1 reply
  • 219 views

I've been trying to flash a .tflite model onto my NUCLEO-L433RC-P, using STM32CubeMX and Keil uVision5 initially, and later with STM32CubeIDE. But for some reason I keep getting issues either with "Analyze" or with generating the code. I am on Windows 11. My computer is in the chinese language, but my system local is English (US).

Initially, while using CubeMX/Keil, I was able to successfully analyze my model after downgrading to the 7.1.0 version of Cube-AI. Before that, with the newest version, I get "TOOL ERROR: 'utf-8' codec can't decode byte in position x in position y: invalid start byte". But after analyzing and successfully running the model on desktop, when it comes to generating the code to run on my device, it refuses to generate any .h files nor the middlewares folder.

 

I looked online and couldn't find any solutions, and decided to download CubeIDE as I thought that this might fix the issues.

 

But after downloading CubeIDE, I faced even more issues, as now on top of getting the exact same TOOL ERRORs when using the latest Cube-AI version, I get a simple "[AI:Network] Analyze fail on the AI model" with no further error reports or anything.

 

I am very lost as to what I should do.

1 reply

Julian E.
Technical Moderator
February 3, 2026

Hi @PZhuMax,

 

Could you please share your model in a .zip folder?

 

Have a good day,

Julian

​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.