I have used Keil uVision5 to create a hex file for the target STM32F103VE and I was not able to generate the hex. Here is the error log.(I have already thoroughly searched for the answer):

linking...
FromELF: creating hex file...
.\CompileOutput\Main.hex: Error: Q0122E: Could not open file '.\CompileOutput\Main.axf': No such file or directory
Finished: 0 information, 0 warning and 1 error messages.
After Build - User command #1: C:\Keil_v5\ARM\ARMCC\bin\fromelf.exe --bin -o .\Output\Main.bin .\CompileOutput\Main.axf
".\CompileOutput\Main.axf": Error: Q0122E: Could not open file '.\CompileOutput\Main.axf': No such file or directory
Finished: 0 information, 0 warning and 1 error messages.
".\CompileOutput\Main.axf" - 0 Error(s), 0 Warning(s).

Can anyone please help me get rid of this error?

有帮助吗?

解决方案

We had a project with a similar error, and it turned out that we needed to disable cross-module optimization in the build options window.

其他提示

I have similar issue. In my case full path to project contain '!' char. Try with simple path like 'c:\myProj'

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top