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
  • I also got the same error.

    1. compiling stm32f1xx_hal_tim.c...
    "no source": Error: command-line: #564: cannot open embedded assembler output file "C:\Users\amit\AppData\Local\Temp\p82c-2": No such file or directory

    now I fixed the error.

    Go to the path C:\Users\amit\AppData\Local\Temp\p82c-2

    It will ask you "You will need to provide administrator permission to open the the folder"

    Just open it and now try to build in keil.

Reply
  • I also got the same error.

    1. compiling stm32f1xx_hal_tim.c...
    "no source": Error: command-line: #564: cannot open embedded assembler output file "C:\Users\amit\AppData\Local\Temp\p82c-2": No such file or directory

    now I fixed the error.

    Go to the path C:\Users\amit\AppData\Local\Temp\p82c-2

    It will ask you "You will need to provide administrator permission to open the the folder"

    Just open it and now try to build in keil.

Children
No data