Generate code not working in CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-11 1: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-11 6:38 AM - edited ‎2024-07-11 7: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-15 6: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.
 
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-16 2: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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-18 4: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-25 11:01 AM
I just had the same issue.
Also solved by logging in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-18 5: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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-18 5: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.
