cancel
Showing results for 
Search instead for 
Did you mean: 

Compilation error in STM32F407VET6 board

mr_vineet
Associate II

Info: Internal Builder is used for build

gcc -O0 -g3 -Wall -c -fmessage-length=0 -o "Core\\Src\\system_stm32f4xx.o" "..\\Core\\Src\\system_stm32f4xx.c"

..\Core\Src\system_stm32f4xx.c:48:23: fatal error: stm32f4xx.h: No such file or directory

#include "stm32f4xx.h"

Instead of adding "stm32f4xx.h" file it showi

2 REPLIES 2
STTwo-32
ST Employee

Hello @mr_vineet and welcome to the ST Community 😊.

It seems the include paths are not properly set up.

Make sure to configure the include paths and check the path of the stm32f4xx.h header file. Maybe that folder was not in the include folder list.

Best Regards.

STTwo-32

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.

Andrew Neil
Evangelist III

@mr_vineet wrote:

Compilation error in STM32F407VET6 board


Note that this isn't anything to do with the board - the compilation error is in your code.

 


@mr_vineet wrote:

stm32f4xx.h: No such file or directory


So the first thing to check is: does that file actually exist at all anywhere on your system?

Clearly, if the file is not on your system, then the compiler is not going to be able to find it!

If the file does exist, then the next question is: is it in a place where the compiler can find it?

That's where the Include Paths that @STTwo-32 mentioned come in ...

 


@mr_vineet wrote:


Instead of adding "stm32f4xx.h" file it showi


Did you mean to add something further there?