Failed to Generate Command line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-26 5:18 AM
Hi there,
I'm new to this community. I'm having an issue right now. Everything was working fine, until I made the mistake of going to Project -> Properties -> settings -> C/C++ Build -> Settings. Silly me hit "restore defaults"
Ever since that moment, when I hit the Hammer Icon to build, I get errors that say "Failed to Generate Command line. Reason: Unknown Target".
I"m assuming somehow I deleted the linker settings somehow?
I also get these issues.
"Drivers/STM32G4xx_HAL_Driver/Src/subdir.mk:73: *** unable to generate command line. Stop."
Would really appreciate some help on how to fix this, thanks so much.
Regards,
Teyros
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-26 3:00 PM
OK So in the end, it appears I couldn't give the STM32cubeIDE a new target, it was greyed out.
So I selected the option to create a new project with an existing ioc file. Then dragged and dropped all the src and inc files. Seems to work now when I select build.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-26 2:32 PM - edited ‎2023-11-26 2:37 PM
Could really use some help guys/gals.
I created a new file, and it appears that the HAL drivers under Debug are deleting themselves.
Also noticed I cant get the MCU and Board options to be available how do I get that to select the board?
Whenever I copy and paste the working new files Debug HAL drivers in, when I click build, then they get removed and that same error happens again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-26 3:00 PM
OK So in the end, it appears I couldn't give the STM32cubeIDE a new target, it was greyed out.
So I selected the option to create a new project with an existing ioc file. Then dragged and dropped all the src and inc files. Seems to work now when I select build.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-27 5:12 AM
Hello @Teyros ,
First let me thank you for posting and welcome to the ST Community.
You are not compiling certain source files that are under Drivers/STM32G4xx_HAL_Driver/Src. Maybe you have deleted a folder from this list.
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
‎2023-11-30 5:32 AM
Hi Mahmoud,
Thanks for the welcome. Yes in the end when I restored default, it removed the target from the settings. I was unable to modify and reset the target, but creating a new file and copying my .c and .h files seemed to be a good temporary solution.
Hope you are well,
Regards,
Teyros
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-27 3:53 AM
Hi, Maybe you need to install last version of STM32CubeIDE.
