您尚未登录。

楼主 # 2022-08-11 17:17:32

歌以咏志
会员
注册时间: 2019-09-21
已发帖子: 219
积分: 210

MDK 编译 ACM32 出错,请问这是什么问题?

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

离线

楼主 #1 2022-08-11 19:04:40

歌以咏志
会员
注册时间: 2019-09-21
已发帖子: 219
积分: 210

Re: MDK 编译 ACM32 出错,请问这是什么问题?

_20220811190108.png

_20220811190014.png





卸载并安装新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

离线

#2 2022-08-11 20:32:59

海石生风
会员
所在地: 深圳
注册时间: 2019-07-02
已发帖子: 649
积分: 782
个人网站

Re: MDK 编译 ACM32 出错,请问这是什么问题?

估计 Core_Drivers/CMSIS/cmsis_compiler.h 这个文件估计是被修改了,将这个文件的41行的 #include "cmsis_armclang_ltm.h" 改为 #include "cmsis_armclang.h" 即可。
建议重新从SDK里整理工程模板。

离线

#3 2022-08-12 09:06:27

天长地久
会员
注册时间: 2022-08-12
已发帖子: 1
积分: 1

Re: MDK 编译 ACM32 出错,请问这是什么问题?

学习,谢谢楼主。

离线

楼主 #4 2022-08-12 09:23:17

歌以咏志
会员
注册时间: 2019-09-21
已发帖子: 219
积分: 210

Re: MDK 编译 ACM32 出错,请问这是什么问题?

海石生风 说:

估计 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

离线

楼主 #5 2022-08-13 17:47:03

歌以咏志
会员
注册时间: 2019-09-21
已发帖子: 219
积分: 210

Re: MDK 编译 ACM32 出错,请问这是什么问题?

_20220813174400.png

_20220813174608.png

发现复制 ARMCC\目录过来也可以编译成功!

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn