make all
make: *** No rule to make target ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-14 8:33 AM - edited 2023-11-20 8:10 AM
Hello everyone,
I use GPIO example project (from repository of ST) and open it by STM32 cube IDE. then when I built it give error:
make all
make: *** No rule to make target ...
How to fix this error?
Thank you! Sorry cause my English not good.
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-04-14 1:05 PM
Do not copy the example, but open the project in the repository tree. The projects use relative paths to the Drivers folder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-14 11:57 AM
You have opened the folder, but not the project. The project file is in the SW4STM32/STM32F030R8-Nucleo subfolder. Look for a .project file (may not be visible depending on your explorer settings).
Use File > Open projects from file system to import the project in your current workspace.
The imported project should have a blue "IDE" icon and build without errors.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-14 12:27 PM
Clean the project then Refresh. Then try to build again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-14 12:36 PM - edited 2023-11-20 8:10 AM
i open .project file (or open from file system) but it still error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-14 12:49 PM
it still has that error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-14 1:03 PM - edited 2023-11-20 8:10 AM
here are the steps i took:
- copy GPIO example project in repository of ST from (C:) disk
- open folder GPIO project > SW4STM32 > ".project" and cube ide opened, then i built it. it error "no such file or directory" and when I include path, it error "make: *** No rule to make target ..." as name's topic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-14 1:05 PM
Do not copy the example, but open the project in the repository tree. The projects use relative paths to the Drivers folder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-14 1:27 PM
Wow! It done. Thank you very so much! very impressive! Bravo!
Thanks everyone! I spent a lot of time on that error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-08-04 6:54 AM
In my case I opened the .cProject in place [downloaded the entire repository, and then opened:
this
"G:\H5_GITHUB_EXAMPLE\Projects\NUCLEO-H563ZI\Examples\GPIO\GPIO_IOToggle_TrustZone\STM32CubeIDE\.project"
and I'm getting all red with the same error message:
Description Resource Path Location Type
make: *** No rule to make target 'G:/H5_GITHUB_EXAMPLE/Drivers/STM32H5xx_HAL_Driver/Src/stm32h5xx_hal.c', needed by 'Drivers/STM32H5xx_HAL_Driver/stm32h5xx_hal.o'. Stop. GPIO_IOToggle_TrustZone_Secure C/C++ Problem
