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

What's wrong with my Keil v5 compiler that target is sometimes gets created and sometimes not?

I want to perform blinky program operation on STM32F103C8T8 using Keil v5 Compiler. I am generating C source code using STM cubemx and making Pin13 on/off with delay of 100ms. My code is https://files.fm/u/n9zbag4t

The problem is that when I click on rebuild option the code the target is created without any error https://imgur.com/a/0amDlDb

and when I click on rebuild option another time(Without any change in anything), the target is not created showing multiple errors https://imgur.com/a/OjSWF1b

The target is created when I click "rebuild" option after N no of trials (sometimes 1 or 2 and sometimes 100)
So what's wrong going with it?

Note: I am running keil as administrator. Also ,I tried to install previous packs but same result. I have formatted my c drive ,installed WINDOWS 7 ultimate setup Then I reinstalled keil v5 too but no change at all

Parents
  • #define YELLOW 0xFFFF00
    #define GRAY 0x927468
    #define GREEN 0x00FF00
    #define BLUE 0x0000FF
    #define RED 0xFF0000
    #define WHITE 0xFFFFFF
    #define BLACK 0x000000

    #if 0
    /* colors 8bpp */
    #define BLACK 0
    #define BLUE 1
    #define GREEN 2
    #define CYAN 3
    #define RED 4
    #define MAGENTA 5
    #define BROWN 6
    #define WHITE 7
    #define GRAY 8
    #define LIGHT_BLUE 9
    #define LIGHT_GREEN 10
    #define LIGHT_CYAN 11
    #define LIGHT_RED 12
    #define LIGHT_MAGENTA 13
    #define YELLOW 14
    #define LIGHT_WHITE 15
    #endif

    typedef unsigned char byte;

    /** Initialize values and function pointers in lfb.
    */

Reply
  • #define YELLOW 0xFFFF00
    #define GRAY 0x927468
    #define GREEN 0x00FF00
    #define BLUE 0x0000FF
    #define RED 0xFF0000
    #define WHITE 0xFFFFFF
    #define BLACK 0x000000

    #if 0
    /* colors 8bpp */
    #define BLACK 0
    #define BLUE 1
    #define GREEN 2
    #define CYAN 3
    #define RED 4
    #define MAGENTA 5
    #define BROWN 6
    #define WHITE 7
    #define GRAY 8
    #define LIGHT_BLUE 9
    #define LIGHT_GREEN 10
    #define LIGHT_CYAN 11
    #define LIGHT_RED 12
    #define LIGHT_MAGENTA 13
    #define YELLOW 14
    #define LIGHT_WHITE 15
    #endif

    typedef unsigned char byte;

    /** Initialize values and function pointers in lfb.
    */

Children