Tag Archives: Keil error

[Solved] KEIL Error: keil Error: failed to execute ‘C:\Keil\ARM\ARMCC‘

 

Question:

keil Error: failed to execute ‘C:\Keil\ARM\ARMCC’

Cause of problem:

route:

.\MDK_ARM\ARM

Kiel ARM compiler is missing:

Because the latest version of Keil installation directory does not support ARMCC, that is, version 5 cannot be used

Solution:

1. Download the old version of keil

2. Right click to unzip the file, and put the file into the folder where the new version of ARM is installed

3. Add this folder

[Solved] Keil Error: ST-LINK USB communication error

Keil Error: ST-LINK USB communication error

Today, when downloading the program with stlink-v2, there was st-link USB communication error. This problem suddenly appeared. I found many solutions on the Internet, but they can’t be used. My solutions are given below for reference only.

If there is a problem as shown in the figure below:

We can solve this problem by re brushing the firmware. you can download the stlink online.

It is very easy to upgrade the firmware of ST-Link. If the ST-Link can be used normally, please do not come to upgrade easily. Here you can open our ST-Link package, there is a zip package inside: ST-Link firmware upgrade software.zip, you can see after decompression.

For windows computers, we go directly to the windows folder and click ST-LinkUpgrade.exe:

The opened interface is as follows:

At this time, we need to connect st link to the computer through USB. After connecting, click the device connect button on the interface,
if the connection is successful, the prompt message in the following interface will appear:

Note: if an error is reported when brushing firmware: Communication error with ST-Link .Try to start it. We can solve this problem by unplugging stlink and then continuing to update the firmware

[Solved] KEIL Error: source file ‘.XXX.o‘ – object file renamed from ‘XXX.o‘ to …

Problem description

1. In the Keil project, move the C file in the app component to the dev component,
2. When using keil, sometimes you accidentally add two identical. C files in different group folders
at this time, the compilation will appear:
note: source file ‘… (core/Src/GPIO. C) – object file renamed from’ 7.710.200c/GPIO. O ‘to’ 7.710.200c/GPIO_ 1. O ‘.
error report

Solution

1. Delete duplicate files to ensure that. C files are not duplicated in the project
2. Close the Keil project and run keilkill.bat to delete all the compiled link files
3. Open the project to compile

Keilkill.bat code attached

del *.bak /s
del *.ddk /s
del *.edk /s
del *.lst /s
del *.lnp /s
del *.mpf /s
del *.mpj /s
del *.obj /s
del *.omf /s
::del *.opt /s  ::Settings that do not allow JLINK to be deleted
del *.plg /s
del *.rpt /s
del *.tmp /s
del *.__i /s
del *.crf /s
del *.o /s
del *.d /s
del *.axf /s
del *.tra /s
del *.dep /s           
del JLinkLog.txt /s

del *.iex /s
del *.htm /s
del *.sct /s
del *.map /s
exit

Copy the content to a TXT file, save and exit. Then change the suffix of. Txt to. Bat. Put the modified bat file into the project and run it

Keil’s duplicate definition problem: Error: L6200E: Symbol F6x8 multiply defined

I encountered it in driving the OLED and capacitive buttons, so I recorded this error and I would not be at a loss if I encountered it again later.

Keil’s Debug picture
image

Is the definition repeated? I didn’t see it anyway when I was looking for the file

The problem is solved. The reason is that I did not declare in the header file, but directly defined the variable, and the corresponding C file did not have the definition of the variable, so this error occurred. The
solution is to move the variable in the header file directly to In the c file, and then declare in the header file, for example, in the c file, it is const unsigned char F6x8[][16]declared in the header file extern const unsigned char F6x8[][16], and that’s it!