Skip to main content
Visitor II
April 14, 2023
Solved

make all make: *** No rule to make target ...

  • April 14, 2023
  • 5 replies
  • 15785 views

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.
_legacyfs_online_stmicro_images_0693W00000bi7INQAY.png

    This topic has been closed for replies.
    Best answer by KnarfB

    Do not copy the example, but open the project in the repository tree. The projects use relative paths to the Drivers folder.

    5 replies

    Super User
    April 14, 2023

    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

    StarkAuthor
    Visitor II
    April 14, 2023

    i open .project file (or open from file system) but it still error.
    _legacyfs_online_stmicro_images_0693W00000bi82GQAQ.png

    Super User
    April 14, 2023

    Clean the project then Refresh. Then try to build again.

    StarkAuthor
    Visitor II
    April 14, 2023

    it still has that error

    StarkAuthor
    Visitor II
    April 14, 2023

    here are the steps i took:

    1. copy GPIO example project ​ in repository of ST from ​(C:) disk
    2. 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.
      _legacyfs_online_stmicro_images_0693W00000bi86DQAQ.png
    KnarfBAnswer
    Super User
    April 14, 2023

    Do not copy the example, but open the project in the repository tree. The projects use relative paths to the Drivers folder.

    StarkAuthor
    Visitor II
    April 14, 2023

    Wow! It done. Thank you very so much! very impressive! Bravo!​

    Thanks everyone! I spent a lot of time on that error

    Visitor II
    August 4, 2024

    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