About STM32CubeIDE Code Generation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-08 6:51 AM - edited ‎2024-08-08 7:28 AM
Sorry for the rudimentary question. I tried to generate code by setting up pin assignments in STM32CubeIDE with reference to the following site, but the code such as main.c is not generated as shown in the following image.
If you know the cause of the problem, I would appreciate it if you could tell me the solution as well as the countermeasures.
 https://qiita.com/yosihisa/items/136bcc09c466227303a2
The procedure is as follows. 4 operations are recognized to generate the code automatically.
1 Select STM32F405RG on the CPU selection screen. 
2 Set the project name to LED
3 Set PA15 to GPIO_Output
4 Save the project by pressing ctrl+s
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-08-08 7:43 AM
Hello @yunkel ,
First let me thank you for posting and welcome to the ST Community.
I advise you to check the connection under Window->Preferences->Firmware updater, then login to your ST account.
The firmware will be successfully downloaded then you will be able to generate the code by clicking on CTRL+S.
I suggest also that you take a look at the STM32CubeIDE user guide.
It details the STM32CubeIDE features and usage, including how to get started, create and build projects, debug
with standard and advanced techniques, and many other software analysis solutions.
Thanks.
Mahmoud
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-08 7:43 AM
Hello @yunkel ,
First let me thank you for posting and welcome to the ST Community.
I advise you to check the connection under Window->Preferences->Firmware updater, then login to your ST account.
The firmware will be successfully downloaded then you will be able to generate the code by clicking on CTRL+S.
I suggest also that you take a look at the STM32CubeIDE user guide.
It details the STM32CubeIDE features and usage, including how to get started, create and build projects, debug
with standard and advanced techniques, and many other software analysis solutions.
Thanks.
Mahmoud
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-08 8:26 AM
Hello Mahmoud
I was able to generate the code using the method you described!
Thank you very much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-08 8:29 AM
Great - now please mark the solution:
https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256
A complex system designed from scratch never works and cannot be patched up to make it work.
