Skip to main content
Associate III
November 18, 2024
Solved

Latest CubeMX Code Generation Bug

  • November 18, 2024
  • 2 replies
  • 847 views
 

I am using the STM32MP131 in a bare-metal environment.
Since upgrading CubeMX from version 6.11 to 6.12, the code generation for the SPI3 module does not work at all.
Specifically, the function declarations are generated, but the internal code of the functions is not generated at all.

 

Stnoobs_0-1731913312185.png

The code on the left is from version 6.11, and the code on the right is from the latest version.

There is no internal code at all.

 

 

I'm not sure if this issue is specific to me, but I have confirmed that it works properly in version 6.11.

Best answer by Semer CHERNI

Hello @Stnoobs 

First let me thank you for posting.

I made the test and the issue is confirmed. An internal ticket is submitted to the development team for analysis and fix.

BR,
Semer.

2 replies

Semer CHERNI
Semer CHERNIBest answer
ST Employee
November 18, 2024

Hello @Stnoobs 

First let me thank you for posting.

I made the test and the issue is confirmed. An internal ticket is submitted to the development team for analysis and fix.

BR,
Semer.

Visitor II
December 24, 2024

I encountered an issue where the code generation in STM32CubeIDE appeared to run but didn’t actually generate any code. There were no errors or warnings, and no logs indicating a problem. Here’s how I resolved it:

Steps to Fix:

  1. Go to Help -> STM32Cube updates -> Connection to myST.

  2. Enter your myST username and password to establish a connection.

  3. Once connected, generate the code again by going to Project -> Generate Code.

After following these steps, the IDE connected, downloaded necessary updates, and successfully generated the code.