cancel
Showing results for 
Search instead for 
Did you mean: 

Generate code not working in CubeIDE

slai-nick
Associate II

Following up from my previous post, I am having issues with code generation - it seems to complete, but I don't see anything changed in the code.

Here attached you will find the ioc file. I modified pin names for PB10 to PB12, but after generating the code I don't see any of the name in the project (should be in main.h, but I did a search in the whole project just to be sure).

 

I am using STM32CubeIDE 1.16.0 on mac Sonoma 14.2.1 with M1 chip.

13 REPLIES 13
C-Coder
Associate II

Hey all. I have this same issue. I have the following installed:

 

STM32CubeMX - 6.13.0

STM32CubeProgrammer - 2.18.0

STM32CubeIDE - 1.17.0

 

The device I'm trying to generate for is the STM32H747XI. I have tried clearing the myST account info and entering it again (from CubeMX and from CubeIDE). Regardless of which app I try to generate code from, I never get more than a skeleton (e.g. none of the custom User Labels for PINs show as #defines, and there's no initialization code generated). The Check Connection button always returns without a displayed error, there's no Proxy server in use.

 

Any ideas?

 

Thanks - C-Coder

 

EDIT - Looks like the problem was that the Pin Context Assignment value was not set. Set them to the appropriate core causes the code to be generated.

gwfung
Associate

I also have this problem.  In the context menu for the project, Generate Code is now grayed out after I logged in properly.

 

Someone asked about working offline.  In the user guide UM2609 I found this mention about working offline in section 1.2.3:

gwfung_0-1742765441141.png

 

this is not the solution to the same, you must have an stm account and login, so as to download all pending updates for the code generation to be successfull

>you must have an stm account and login

Yes, this is basic prerequisite .

"Problems" here are: if still not working...or get some error.

 

 

If you feel a post has answered your question, please click "Accept as Solution".