cancel
Showing results for 
Search instead for 
Did you mean: 

Changed target MCU, now can't find header file

PSEBA.1
Associate II

Post title edited - please make your titles descriptive of the issue.


Hello,

I have an existing project with an STM32F401, I would like to have the same project with an STM32f429,

I created a project with a cpu STM32f429, when compiling, i have an error message (picture 1 and 2),

I added all the files as identical to the original project, the difference is in the "Include" folder (picture 3)

there is a DASHBOARD/fonts file that. I cannot add.

I don't know how to do it and is my problem coming from this.

Best regards.

Sébastien.

3 REPLIES 3

So this is a follow-on to your previous thread?

If that is now resolved, please mark the solution there.

 

Again, please make your title more descriptive - just "Cube_Ide" tells us nothing.

 


@PSEBA.1 wrote:

when compiling, i have an error message (picture 1 and 2),


Note that you can paste the screenshots directly into the post - where we can see them:

AndrewNeil_0-1746606126889.png

AndrewNeil_1-1746606168015.png

 


@PSEBA.1 wrote:

I added all the files as identical to the original project, the difference is in the "Include" folder (picture 3)


AndrewNeil_2-1746606207288.png

 


This looks like you have not correctly configured the Include Paths for your project.

The Include Paths are how the compiler knows where to find your header files; without this, it won't be able to find them - so it will give that error saying that it can't find it.

https://community.st.com/t5/stm32cubeide-mcus/files-not-being-recognized-if-inside-folder/m-p/716138/highlight/true#M30405

https://community.st.com/t5/stm32-vscode-extension-mcus/main-h-is-not-found/m-p/766242/highlight/true#M586

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
TDK
Guru

You haven't shown that the file actually exists anywhere in the include path. It probably doesn't.

If you feel a post has answered your question, please click "Accept as Solution".
Hl_st
ST Employee

Paths can be set by click on the project folder in Project explorer in CUBEIDE, choose Properties. Than in window shown below find Paths and Symbols in C/C++ General. There click to Add... and by File system... add folder with your .h files.

paths.png

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.