cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with X-CUBE-AI configuration and code generation in STM32CubeIDE 2.0.0 / CubeMX 1.19.1

yaswanth_cdac
Associate II

Dear STMicroelectronics Team,

My name is Yaswanth Kuna from India. I would like to report two issues related to code generation and X-CUBE-AI configuration in the latest versions of STM32CubeIDE, STM32CubeMX, and STM32 expansion packages.

I am working with the STM32F407VG MCU and X-CUBE-AI 5.1.2.

Issue 1: Missing “x-cube-ai” include folder after code generation

Environment:

  • STM32CubeMX 1.19.1

Steps to reproduce:

  1. Create a new STM32 project.

  2. Clear all pinouts.

  3. Reconfigure all required peripherals manually.

  4. Enable X-CUBE-AI and configure it.

  5. Generate code.

Problem:

After code generation, the x-cube-ai include folder is not generated correctly.
However, if I generate code using the default pinout, everything works correctly.

  •  This means the issue only occurs when pinouts are cleared and reconfigured manually.

Issue 2: X-CUBE-AI configuration resets when reopening the IOC file

Environment:

  • STM32CubeIDE 2.0.0 (with embedded CubeMX)

  • X-CUBE-AI 5.1.2

Steps to reproduce:

  1. Create a project in standalone STM32CubeMX.

  2. Clear pinouts, configure peripherals, and enable X-CUBE-AI.

  3. Generate the code → Build succeeds.

  4. Close CubeMX and close the entire project.

  5. Open STM32CubeIDE 2.0.0 → open the .ioc file.

Problem:

When opening the IOC inside CubeIDE, the X-CUBE-AI package becomes deinitialized, and:

  • X-CUBE-AI settings are lost

  • The 5.1.2 version selection resets every time

  • Code regeneration requires reconfiguring AI settings again.


Request

I kindly request the ST development team to please review these issues.
Both problems affect the workflow for AI model integration on STM32F4 devices and make development difficult.

Please help us with a fix or workaround.  

Thank you for your support.

Sincerely,
Yaswanth Kuna

 

 

 

 

7 REPLIES 7
Mahmoud Ben Romdhane
ST Employee

Hello @yaswanth_cdac ,

 

Let me thank you for posting.

I am currently checking this behavior, and I will get back to you ASAP.

For more investigation, could you please provide your Ioc.File.

 

Thanks.

Mahmoud 

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.

Mahmoud Ben Romdhane
ST Employee

Hello @yaswanth_cdac ,

 

Let me thank you for bringing this issue to our attention.

An internal Ticket was submitted to the Dedicated Team (Internal Ticet Number: Ticket 223751).

I recommend that you use the X-CUBE-AI.10.2.0.

 

Thanks

Mahmoud

 

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.

These issues are specifically related to the X-CUBE-AI package, and I believe they need to be addressed in order to ensure a smooth workflow for developers using AI features on STM32 devices. I kindly request the ST team to review these problems thoroughly and provide a fix or a workaround.

I would also like to mention that I am new to Embedded AI (AI/ML). Since the latest version (10.2.0) is more advanced and complex for beginners, I am currently practicing with the lower versions of X-CUBE-AI to understand the basics more easily. This makes the stability of older versions very important for learning and development.

Thank you for your time and support.

 

Thanks,

yaswanth.

Hello @yaswanth_cdac ,

 

As Workaround, I recommend that you remove X-CUBE-AI 5.1.2 from the STM32Microelectronics package list reinstall it again and click on Refresh.

MahmoudBenRomdhane_0-1765786963603.png

MahmoudBenRomdhane_1-1765787315403.png

 

Thanks.

Mahmoud

 

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.

ok, 

Thank you, for solving the error in 5.1.2 package of x-cube-ai. 

As you mentioned, I go through 10.2.0 x-cube-ai, still there are issues and bugs at some cases,

 

Thankyou, 

yaswanth.  

 

Hello @yaswanth_cdac ,

 

I suggest that you take a look at this User Manual.

It provides the guidelines to build step by step a complete Artificial Intelligence (AI) IDE-based project for
STM32 microcontrollers

This ST Post shows how to install the X-CUBE-AI expansion package through STM32CubeMX.

 

Thanks.

Mahmoud

 

 

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.

Hello Mahmoud,

Thank you for the reply, I already go through the user manual to develop application on stm32 using Cube MX, x-cube-ai package. However, I am still observing certain issues in version 10.2.0 of the package. I will share the details of these issues in the coming days.

Thank you for your time and support.