2024-07-11 12:52 AM - edited 2024-07-11 12:53 AM
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.
Solved! Go to Solution.
2024-07-11 10:30 AM
> 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
2024-07-11 01:06 AM
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.
2024-07-11 06:38 AM - edited 2024-07-11 07:03 AM
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.
2024-07-11 10:30 AM
> 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
2024-07-15 06:04 AM
Hello @slai-nick ,
First let me thank you for posting.
This problem is not reproduced using STM32CubeIDE 1.16.0 on mac Sonoma.
Thanks.
Mahmoud.
2024-07-16 02:14 AM
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!
2024-08-18 04:48 AM
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.
2024-10-25 11:01 AM
I just had the same issue.
Also solved by logging in
2024-11-18 05:19 AM
honestly, this is just fu***ed up. having to login to your account in order for code generation to work....
just had the same issue and it took me 2 hours to figure this out. makes me want to switch to some other ide. not that cubeide ever was a great ide...
2024-11-18 05:46 AM
Yeah. We already have to log in to download the software. Now, we have to log in to use it.
If you don't have an internet connection, you're f***ed.