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.

1 ACCEPTED SOLUTION

Accepted Solutions

>  It is done within a fraction of a second.

So you have one of these new quantum processors - or its doing nothing. :)

 

Maybe you try : install CubeMX , to make ioc and gen.code (same as the IDE plugin). Try...

https://www.st.com/content/st_com/en/stm32cubemx.html

 

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

View solution in original post

7 REPLIES 7
AScha.3
Chief II

Look in main.c , gpio init :

void MX_GPIO_Init(void)
{
  GPIO_InitTypeDef GPIO_InitStruct = {0};

  /* GPIO Ports Clock Enable */
  __HAL_RCC_GPIOE_CLK_ENABLE();
  __HAL_RCC_GPIOC_CLK_ENABLE();
  __HAL_RCC_GPIOF_CLK_ENABLE();
  __HAL_RCC_GPIOH_CLK_ENABLE();
  __HAL_RCC_GPIOA_CLK_ENABLE();
  __HAL_RCC_GPIOB_CLK_ENABLE();
  __HAL_RCC_GPIOG_CLK_ENABLE();
  __HAL_RCC_GPIOD_CLK_ENABLE();

  /*Configure GPIO pin Output Level */
  HAL_GPIO_WritePin(GPIOE, GELB_Pin|GRUEN_Pin|ROT_Pin, GPIO_PIN_RESET);

There you see "your" names...after gen.code.

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

I don't...
Also the names should be defined in main.h, but they aren't, and they don't appear anywhere else in the project.

It just seems that my IDE is in a broken state... Unfortunately I just reinstalled it and it didn't solve the issue.

When I click generate code, the window appears but is a lot faster than it should be. It is done within a fraction of a second.

>  It is done within a fraction of a second.

So you have one of these new quantum processors - or its doing nothing. :)

 

Maybe you try : install CubeMX , to make ioc and gen.code (same as the IDE plugin). Try...

https://www.st.com/content/st_com/en/stm32cubemx.html

 

If you feel a post has answered your question, please click "Accept as Solution".
Mahmoud Ben Romdhane
ST Employee

Hello @slai-nick ,

First let me thank you for posting.

This problem is not reproduced using STM32CubeIDE 1.16.0 on mac Sonoma.

 

MahmoudBenRomdhane_1-1721048395747.pngMahmoudBenRomdhane_2-1721048476008.png

Thanks.

Mahmoud.

 

 

 

I installed CubeMX and generated the code with it. It worked, and also "repaired the CubeIDE" which is now able to generate the code... I have no idea what what went broken but I am glad it works again!

RLanz.2
Associate III

Hi,

I've bumped into similar issue after installation of STM32CubeIDE 1.16.0.
I could not generate code after any change in the *.ioc file.
I work on STMU575, but I think it is a general issue.
After connecting to 'My ST' account in the STM32CubeIDE, I suddenly could generate the code.

P.S.
I only wonder if this is a one-timer need to connect to ones ST account, in order to generate code, after a new STMCubeIDE version installation, or will it be required for any code generation one might need.

I just had the same issue.

Also solved by logging in