1、问题描述
最近在正点原子的北极星上移植了RT-thread这个操作系统,软件MDK537,编译器是V6.18(V5.06编译是真的慢),但是每次编译完成后总是报出以下错误,如下图所示。你换为V5.06的话就没有,然后你在用V6.18,它又可以,反反复复,简直受不了!
.\Output\RTthead.axf: Error: L6079E: Subtool invocation error: Error executing armcc. 2??|?3ɡ£
.\Output\RTthead.axf: Error: L6636E: Pre-processor step failed for '.\Output\RTthead.sct'
.\Output\RTthead.axf: Error: L6372E: Image needs at least one load region.
2、解决方法
https://developer.arm.com/documentation/ka002282/latest/
很简单把分散文件的#! armcc -E
改成#!armclang -E --target=arm-arm-none-eabi -mcpu=cortex-m7 -xc
即可,如下图所示。
;#! armcc -E
#!armclang -E --target=arm-arm-none-eabi -mcpu=cortex-m7 -xc