Skip to main content
KKato.2
Associate II
October 27, 2022
Solved

Device Configuration Tool does not generate the code.

  • October 27, 2022
  • 10 replies
  • 21627 views

I have been using STM32CubeIDE (Version: 1.10.1) with STM32CubeMX - STM32 Device Configuration Tool Version: 6.6.1-RC2.

But when i do some modification in device configuration and then try to generate the code , it does not generate the code. But when i create the new project using same device configuration file (project.ioc) it does generate the code with new changes , just popup appears for less than a second saying "device configuration Tool updating code .." and then just disappears without updating the code or any error.

What could be the problem?

Best answer by KKato.2

I find that when i uncheck the Backup option , the tool works fine.

10 replies

ST Employee
October 27, 2022

Hello @KKato.2​ and welcome to the Community :smiling_face_with_smiling_eyes:

I would like to know is it the first time that this problem occurs ? was it working properly previously ?

Can you show me your code generator settings under Project Manager in CubeMX ?

Also, can you record the popup that appears ?

Sarra

KKato.2
KKato.2Author
Associate II
October 27, 2022

Hello Sara,

Yes the problem occurred first time , not sure but probably when I installed update for STMCubeIDE.

It was working fine before.

I am sending the screen shot for the code generator setting

I can't record the popup as it disappears withing a second.0693W00000VOGRZQA5.jpg0693W00000VOGRUQA5.jpg0693W00000VOGRPQA5.jpg

ST Employee
October 27, 2022

hello again @KKato.2​ 

I have the same version of CubeMX (6.6.1) and CubeIDE (1.10.1) and it works fine for me!

Try to change your settings as following :

0693W00000VOGo4QAH.pngif the problem persists, maybe try to work directly on STM32CubeIDE !

Sarra

KKato.2
KKato.2Author
Associate II
October 27, 2022

Hi Sarra,

As you can see in the screen shot i shared earlier , the option for chnaging to option "Copy all used libraries into the project folder" is not possible to select.

and if i change these settings it will change the complete project structure.

I was working for me , but now it is npot my question is why it isn't working now? when updated the STMCUBE iDE and CUBEMX , after that i tried to access the project and device configuration file as the workspace and project.ioc file was created by older versions it asked me to migrate to new version and I did migrated to newer version since then i am unable to generate the code.

thank you,

ST Employee
October 27, 2022

Hi @KKato.2​ 

Maybe you have chosen TrueStudio, SW4STM32 and GPDSC when working with the previous version of STM32CubeMX.

if this is the case, it is not possible to migrate an old .ioc file to the newer version!

Please check @Sara BEN HADJ YAHYA​'s answer, our STM32CubeMX expert in this thread.

Sarra

KKato.2
KKato.2Author
Associate II
October 28, 2022
Hi Sarra,
As I mentioned earlier sae .ioc file works if I crate new project with existing .ioc file , the CubeMX and device configuration tool generate project files. But still, sending the .ioc file in attachment.
I guess there is some setting choosing MCU and Firmware packages , maybe while generating the project the tool could not find the desired firmware version ?
Thank you
Krishna
ST Employee
October 28, 2022

Hello @KKato.2​,

Could you please share your ioc file and provide us with the exact scenario that led to this issue?

Thank you

Sarra

KKato.2
KKato.2Author
Associate II
October 31, 2022

Hello Sarra,

hre again i am sending the .ioc file.

And i mention in very first question , that wi did update on stm cube ide and FW version for stm32G series , this issue started.

Thank you,

krishna

AScha.3
Super User
October 31, 2022

just i see: you checked -> NOT generate main.... better try: unchecked !

0693W00000VOUmbQAH.png

"If you feel a post has answered your question, please click ""Accept as Solution""."
KKato.2
KKato.2Author
Associate II
October 31, 2022

Tried that too, still not working.

KKato.2
KKato.2AuthorBest answer
Associate II
October 31, 2022

I find that when i uncheck the Backup option , the tool works fine.

Visitor II
August 22, 2023

I tried unchecking the backup option. Still not able to create the .main file

Explorer
July 11, 2024

I had similar problem ( I just used ctrl+s , then clicked generate code. but nothing happened ). My issue was I didn't have some drivers but IDE didn't tell me that I need to log in.  And the solution was :

I logged in to my ST account in cubeide ( in my case I used button near help ). After that IDE does what it wants (e.g. updates, installs needed packages . etc. ) and generates code .

Yves Bmnt
Associate III
July 30, 2024

Login in to my ST account worked for me, thanks