2023-11-26 05: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.
2023-11-26 03: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.
2023-11-26 02:32 PM - edited 2023-11-26 02: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
2023-11-26 03: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.
2023-11-27 05: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.
2023-11-30 05: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