Issues with X-CUBE-AI configuration and code generation in STM32CubeIDE 2.0.0 / CubeMX 1.19.1
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:
Create a new STM32 project.
Clear all pinouts.
Reconfigure all required peripherals manually.
Enable X-CUBE-AI and configure it.
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:
Create a project in standalone STM32CubeMX.
Clear pinouts, configure peripherals, and enable X-CUBE-AI.
Generate the code → Build succeeds.
Close CubeMX and close the entire project.
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
