Topic : build project error related

Forum : ARM

Original Post
Post Information Post
September 18, 2012 - 12:07pm

Ride7 :

I have created new project ( Application1 ) . Processor selected : STM32F407VG

In that project , I have just included : -

#include "stm32f4xx.h"

int main(void) {

while( 1 );


but it is giving error like : fatal error : stm32f4xx.h : no such file or directory .

can anybody suggest me to correct the error .

Post Information Post
September 18, 2012 - 2:12pm
Raisonance Support Team

The compiler is just not able to find file stm32f4xx.h.

For including a file (stm32f4xx.h in your case), you must place this file either in the same directory as the including .c file, or in one of the directories referenced in the "Include Directories" application option. (and you can add directories there)

I sugget you start by looking at the examples before creating your own projects. There are examples in Ride and also in the ST library.