Skip to main content
CBeli.1
Associate
March 23, 2023
Solved

CubeIDE removes middleware folder after re-generating CubeMX code. using x-CUBE-AI

  • March 23, 2023
  • 4 replies
  • 3332 views

..

Best answer by fauvarque.daniel

I've seen this behavior with a recent version of STM32CubeMX.

The issue is fixed in X-CUBE-AI 8.1 that will be out in June.

In the mean time a workaround is to remove the .mxproject file before to generate again

Regards

Daniel

4 replies

CBeli.1
CBeli.1Author
Associate
March 23, 2023

Hello, I downloaded an project from https://stm32ai-cs.st.com/home

Yamnet for STM32U57 board

When I open the .ioc file, and generate code in CubeMX, everything works fine.

I get a working project. Which I can build and run in CubeIDE.

My problem happens when I update my .ioc file, and press generate code (doesn't matter whether in CubeMX or CubeIDE). After the code generation the "Middleware" folder gets removed. And without the Middleware folder, my project will not compile anymore.

So the current solution is to only configure my pins etc at the start.

Can you help me?

fauvarque.daniel
fauvarque.danielBest answer
ST Employee
April 27, 2023

I've seen this behavior with a recent version of STM32CubeMX.

The issue is fixed in X-CUBE-AI 8.1 that will be out in June.

In the mean time a workaround is to remove the .mxproject file before to generate again

Regards

Daniel

fauvarque.daniel
ST Employee
May 16, 2023

There is also an option in STM32CubeMX to not remove files:

In STM32CubeMX UI you can uncheck the “Delete previously generated files when not re-generated�? check box (in Project Manager -> Code Generator)

Regards

Daniel

Senior
January 9, 2024

I am using `X-CUBE-AI 8.1` and I am having this issue.