Tag Archives: keil mdk

[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

Error: l6242e: cannot link object arm_ cos_ f32.o as its attributes are incompat

report errors

I use AC6 as the compiler in keil MDK. I report an error when I transplant DSP library to F4. I configure it according to the online tutorial and report an error after compiling

Error: L6242E: Cannot link object arm_common_tables.o as its attributes are incompatible with the image attributes.
Error: L6242E: Cannot link object arm_cos_f32.o as its attributes are incompatible with the image attributes.

After searching on the Internet for a circle, I found no result. If I see a similar problem, I can’t try to solve it.
https://blog.csdn.net/crown133/article/details/103333704

solve

Finally, we found the answer on arm’s official developer website

in the end https://developer.arm.com/documentation/ka003983/latest
In short, AC5 and 6 wchar_ The default size of T is not the same

according to the solution of the official website, you can open this option here

if you encounter problems in the future, you still need to find answers through official channels