Skip to main content
Bilge
Associate III
October 30, 2018
Question

../Inc/main.h(58): error: #5: cannot open source input file "stm32h7xx_nucleo_144.h": No such file or directory

  • October 30, 2018
  • 1 reply
  • 1963 views

Hi,

I use stm32h743ZI nucleo .cubemx and keil.I created c and h files in a new folder.I'm getting the error in this way when I call the h file that I just created in main.../Inc/main.h(58): error: #5: cannot open source input file "stm32h7xx_nucleo_144.h": No such file or directory.

This topic has been closed for replies.

1 reply

Technical Moderator
October 30, 2018

Hello,

You have to configure  correctly your project.

Go to Project options -> "C/C++" tab -> Include paths and add the correct paths to your include directories.

Kind Rgeards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks