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 Reply Children
  • While I click on rebuild all targets, it gives following errors

    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

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

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

    4. compiling stm32f1xx_hal_flash.c...
    ..\Drivers\CMSIS\Include\cmsis_armcc.h(592): error: A1620E: Error writing to file 'C:\Users\amit\AppData\Local\Temp\pcd0-3': Permission denied

    5. compiling stm32f1xx_hal_flash_ex.c...
    ..\Drivers\CMSIS\Include\cmsis_armcc.h(592): error: A1620E: Error writing to file 'C:\Users\amit\AppData\Local\Temp\p110c-3': Permission denied

  • 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
    

    Who is amit ?

    Do you have access to their user directory ?

  • We are friends and working on his laptop. Thus is not an issue. Problem may be not creation / access to respective temp folders, unable to write to folders, Permission denied etc inspite of accessing keil as administrator

  • I am getting mainly 2 types of errors
    1. error :command line:#564:cannot open embedded assembler output file'<filename>':no such file or directory

    2.error: A1620E: error writing to file <filename>:permission denied