Skip to main content
Stark
Associate II
Apr 14, 2023 3:33 PM UTC
Solved

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

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.
    KnarfB
    KnarfBBest answer
    Super User
    Apr 14, 2023 8:05 PM UTC

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

    8 replies

    KnarfB
    Super User
    Apr 14, 2023 6:57 PM UTC

    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

    Stark
    StarkAuthor
    Associate II
    Apr 14, 2023 7:36 PM UTC

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

    Pavel A.
    Apr 14, 2023 7:27 PM UTC

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

    Stark
    StarkAuthor
    Associate II
    Apr 14, 2023 7:49 PM UTC

    it still has that error

    Stark
    StarkAuthor
    Associate II
    Apr 14, 2023 8:03 PM UTC

    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
    KnarfB
    KnarfBBest answer
    Super User
    Apr 14, 2023 8:05 PM UTC

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

    Stark
    StarkAuthor
    Associate II
    Apr 14, 2023 8:27 PM UTC

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

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

    Associate
    Aug 4, 2024 1:54 PM UTC

    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