Skip to main content
Sayali
Associate II
June 29, 2020
Solved

"No Rule to make target" error

  • June 29, 2020
  • 2 replies
  • 5481 views
  • Project created in: TouchGFX Designer
  • Board used: STM32F469I-Discovery Board
  • Generated code in TouchGFX Designer
  • TouchGFX Designer also creates STM32CubeIDE application
  • Replaced the name in .project folder. "<name>STM32F469I-DISCO</name>" with my Project name "<name>MyApplication</name>"
  • In STM32CubeIDE workspace: Opened MyApplication using open "Projects from file system".
  • Configured QSPI suitably. Able to see QSPI in build analyzer
  • Debugger configuration:

Debug Probe: ST-LINK(ST-LINK GDB server)

Interface: SWD

ST-LINK S/N: scanned

Frequency: 8000 kHz

Access Port: 0 - Cortex-M4

External Loader : "N25Q128A_STM32469I-DISCO, 0x90000000, NOR FLASH, N25Q128A_STM32469I-DISCO.stldr"

However, now I have run into an error called "No rule to make target" I am not too sure what it means. Can you please guide me in the right direction?

Thank you in advance!

This topic has been closed for replies.
Best answer by Tesla DeLorean

>>However, now I have run into an error called "No rule to make target" I am not too sure what it means.

Means make doesn't know how to generate a specific object file, where it doesn't have a method to generate a .O file from a .F (Fortran) file, for example.

So either how to compile something, which compiler/settings to use, or when linking te intermediate objects into the final executable.

Really need to look at the log and error message, it should provide context, and a directory for the project build might show what's missing, or which files it might lack rules to process.

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
June 29, 2020

>>However, now I have run into an error called "No rule to make target" I am not too sure what it means.

Means make doesn't know how to generate a specific object file, where it doesn't have a method to generate a .O file from a .F (Fortran) file, for example.

So either how to compile something, which compiler/settings to use, or when linking te intermediate objects into the final executable.

Really need to look at the log and error message, it should provide context, and a directory for the project build might show what's missing, or which files it might lack rules to process.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Sayali
SayaliAuthor
Associate II
June 30, 2020

Thank you for your help.

I resolved this error.

I noticed one thing here: When I created a project in TouchGFX Designer I used a few images for my project and then generated the code. I noticed TouchGFX designer creates .cpp files and object files.But, later when I deleted some Images and regenerated the code.The old object files never deleted and it caused error.

Zu_it
Associate II
July 27, 2021

Hello,

how did you solve this problem?

I deleted those files but it still has this problem.

Alexandre RENOUX
Visitor II
June 30, 2020

Hello,

It's somewhat a bit annoying I reckon but only renaming the name in .project will probably not work.

If you try without renaming I think it will work. In a project, the files are related to each other therefore each file uses the project name and if you change only one it will likely become unrecognizable. To put it simply, it can be quite tricky to change the name of an Application Template.

/Alexandre