This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Step by Step create a project using IAR

Daer All,

I have purchased ARM STM32F407VGT6 development boaer

Now I need to create a project to blink LED using uVission or IAR IDE's

It would be much appreciated if some one can help me to crate project step by step

Thanks in advance

Parents Reply Children
  • Dear All
    I create a project using keil uVision 4 and fond following error after compiled

    Please advice to solve this problem

    Thanks in advance

    Error
    Rebuild target 'Target 1'
    assembling startup_stm32f4xx.s...
    compiling main.c...
    main.c(1): error: #5: cannot open source input file "stm32f4xx_lib.h": No such file or directory
    compiling Retarget.c...
    Target not created

    #include <stm32f4xx_lib.h>                // STM32F10x Library Definitions
    
    /*------------------------------------------------------------------------------
      wait - delay LED flashes
     *------------------------------------------------------------------------------*/
    void wait(){
      unsigned int j = 300000;                 // define counter
    
      while(j--);                              // count down
    }
    
    /*------------------------------------------------------------------------------
      main
     *------------------------------------------------------------------------------*/
    int main(void) {
      const unsigned int init_leds = 0x1;      // define var
      unsigned int leds = init_leds;           // define var
    
      while(1){                                // loop forever
        if (leds > 0x8000) leds = init_leds;   // reset
        GPIOA->ODR = (leds);                   // GPIOA->ODR defined in library
        leds <<= 0x1;                          // shift group
        wait();                                // delay
      }
    }