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
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.