*** Using Compiler 'V6.9', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Rebuild target 'Project'
assembling Startup_ACM32F4.s...
../Source_Code/main.c(11): warning: In file included from...
../Source_Code/APP\APP.h(14): warning: In file included from...
../../../Core_Drivers/HAL_Driver/Inc\ACM32Fxx_HAL.h(26): warning: In file included from...
../../../Core_Drivers/Device\ACM32F4.h(98): warning: In file included from...
../../../Core_Drivers/CMSIS\core_cm33.h(206): warning: In file included from...
../../../Core_Drivers/CMSIS/cmsis_compiler.h(41): error: 'cmsis_armclang_ltm.h' file not found
#include "cmsis_armclang_ltm.h"
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
compiling main.c...
../../../Core_Drivers/HAL_Driver/Src/HAL_EFlash.c(13): warning: In file included from...
../../../Core_Drivers/HAL_Driver/Inc\ACM32Fxx_HAL.h(26): warning: In file included from...
../../../Core_Drivers/Device\ACM32F4.h(98): warning: In file included from...
../../../Core_Drivers/CMSIS\core_cm33.h(206): warning: In file included from...
../../../Core_Drivers/CMSIS/cmsis_compiler.h(41): error: 'cmsis_armclang_ltm.h' file not found
#include "cmsis_armclang_ltm.h"
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
compiling HAL_EFlash.c...
../Source_Code/APP/APP.c(11): warning: In file included from...
../Source_Code/APP/APP.h(14): warning: In file included from...
../../../Core_Drivers/HAL_Driver/Inc\ACM32Fxx_HAL.h(26): warning: In file included from...
../../../Core_Drivers/Device\ACM32F4.h(98): warning: In file included from...
../../../Core_Drivers/CMSIS\core_cm33.h(206): warning: In file included from...
../../../Core_Drivers/CMSIS/cmsis_compiler.h(41): error: 'cmsis_armclang_ltm.h' file not found
#include "cmsis_armclang_ltm.h"
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
compiling APP.c...
../../../Core_Drivers/HAL_Driver/Src/HAL_GPIO.c(13): warning: In file included from...
../../../Core_Drivers/HAL_Driver/Inc\ACM32Fxx_HAL.h(26): warning: In file included from...
../../../Core_Drivers/Device\ACM32F4.h(98): warning: In file included from...
../../../Core_Drivers/CMSIS\core_cm33.h(206): warning: In file included from...
../../../Core_Drivers/CMSIS/cmsis_compiler.h(41): error: 'cmsis_armclang_ltm.h' file not found
#include "cmsis_armclang_ltm.h"
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
compiling HAL_GPIO.c...
../../../Core_Drivers/HAL_Driver/Src/HAL_Uart.c(14): warning: In file included from...
../../../Core_Drivers/HAL_Driver/Inc\ACM32Fxx_HAL.h(26): warning: In file included from...
../../../Core_Drivers/Device\ACM32F4.h(98): warning: In file included from...
../../../Core_Drivers/CMSIS\core_cm33.h(206): warning: In file included from...
../../../Core_Drivers/CMSIS/cmsis_compiler.h(41): error: 'cmsis_armclang_ltm.h' file not found
#include "cmsis_armclang_ltm.h"
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
compiling HAL_Uart.c...
../../../Core_Drivers/Device/System_ACM32F4.c(10): warning: In file included from...
../../../Core_Drivers/HAL_Driver/Inc\ACM32Fxx_HAL.h(26): warning: In file included from...
../../../Core_Drivers/Device\ACM32F4.h(98): warning: In file included from...
../../../Core_Drivers/CMSIS\core_cm33.h(206): warning: In file included from...
../../../Core_Drivers/CMSIS/cmsis_compiler.h(41): error: 'cmsis_armclang_ltm.h' file not found
#include "cmsis_armclang_ltm.h"
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
compiling System_ACM32F4.c...
../../../Core_Drivers/HAL_Driver/Src/HAL_I2S.c(14): warning: In file included from...
../../../Core_Drivers/HAL_Driver/Inc\ACM32Fxx_HAL.h(26): warning: In file included from...
../../../Core_Drivers/Device\ACM32F4.h(98): warning: In file included from...
../../../Core_Drivers/CMSIS\core_cm33.h(206): warning: In file included from...
../../../Core_Drivers/CMSIS/cmsis_compiler.h(41): error: 'cmsis_armclang_ltm.h' file not found
#include "cmsis_armclang_ltm.h"
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
compiling HAL_I2S.c...
../../../Core_Drivers/HAL_Driver/Src/HAL_DMA.c(13): warning: In file included from...
../../../Core_Drivers/HAL_Driver/Inc\ACM32Fxx_HAL.h(26): warning: In file included from...
../../../Core_Drivers/Device\ACM32F4.h(98): warning: In file included from...
../../../Core_Drivers/CMSIS\core_cm33.h(206): warning: In file included from...
../../../Core_Drivers/CMSIS/cmsis_compiler.h(41): error: 'cmsis_armclang_ltm.h' file not found
#include "cmsis_armclang_ltm.h"
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
compiling HAL_DMA.c...
".\Objects\Project.axf" - 8 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01
离线
卸载并安装新MDK解决: MDK537.EXE
ACM32F0 SDK & Datasheet: ACM32F0x0-all-whycan-20220615.rar (烧录算法文件等)
ACM32F4 SDK & Datasheet:ACM32F403-all-whycan-20220615.rar (烧录算法文件等)
安装pack:ACM32F403-all-whycan-20220615\ACM32F403\固件包\固件库\Aisinochip.ACM32F4.1.0.2.pack
离线
估计 Core_Drivers/CMSIS/cmsis_compiler.h 这个文件估计是被修改了,将这个文件的41行的 #include "cmsis_armclang_ltm.h" 改为 #include "cmsis_armclang.h" 即可。
建议重新从SDK里整理工程模板。
感谢大佬指教,刚刚已经搞定了
先装MDK527,再装MDK537即可:
https://armkeil.blob.core.windows.net/eval/MDK527.EXE
https://armkeil.blob.core.windows.net/eval/MDK537.EXE
这样ACL16(ARMCC5),ACM32(ARMCLANG6)都可以编译了。
如果找不到ACL16 找不到 Cortex-M0 device 但是编译正常,可以试一试再安装 MDKCM525.EXE
离线
发现复制 ARMCC\目录过来也可以编译成功!
离线