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
check your "Build Output" window in uVision line by line
#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. */
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
What is this for?
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
can you help
I really don't understand what's going wrong whether its due to keil setup problem or stm32f103c8t6 package installation problem or with laptop's operating system i.e. Windows 7 ultimate32 bit setup problem. By the way in each i have reinstalled every setup twice including windows os too. But as it is saying that file is denied permission for writing at temp location,I think its might due to windows administrator access. But here also we have no guest account
So go right back to basics.
Open a command prompt, and see if you can manually create & write to a file in that location.
It should be obvious that, if this fails, then you have a fundamental Windows problem - nothing to do with Keil.
@Andrew Neil as per your suggestion I manually created sub-folders in temp folder using command promt. But very strange issue occured .
Let me explain u
When I click rebuild all target option ,it gives error saying no directory in temp folder like p1390-2,p858-3, pbb0-2,p128c-2. So here I created directories of above names using command promt.
Then when I click rebuild all target option again, it again give same error saying no directory in temp folder but this time with different directory names like p334-3, p55c-2, p14b4-2 and p1194-3. So again I created these directories too using command promt
and when I clicked rebuild all target option for 3rd time it gives same error saying no directory in temp folder but this time with another different directory names.
And this process is repeating again and again. So what should I do ?
Perhaps by setting the TMP/TEMP environment variable to something else (C:\TEMP), or putting the project is a regular directory, not a virtual directory.
My guess at this point is that you have some AV software interfering with the normal operation of the computer.
I had a similar error because I didn't have access to a folder in windows that contained those kind of directory names. I just clicked on the specific folder and hit continue to gain access. Not sure if it's related to being the administrator or not, but I no longer received the error.
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.