rt1064第一次编译时报错ARMCC: error A1167E: Invalid line start, A1163E unknown opcode...

这是一种启动文件报错,祖传项目中经常出现,原因在于多种编译版本不兼容

精髓在于第一选对编译器用6.x版本编译器;

第二在做好相关arm的设置

参考arm官网解决:ARMCC: error A1167E: Invalid line start, A1163E unknown opcode...​​​​​​

Article ID: KA002247
Applies To: Arm Compiler 5, Keil MDK
Confidentiality: Customer Non-confidential

Information in this knowledgebase article applies to:

  • Keil MDK 5

  • NXP example projects

SYMPTOM

I have selected one of the NXP example projects, offered by the Pack Installer of Keil MDK.

Building this project results in a list of errors messages like:

... error: A1167E: Invalid line start

... error: A1163E: Unknown opcode MIMXRT1062 , expecting opcode or Macro

CAUSE

Some default tool settings have been changed with Keil MDK 5.30, which causes an incompatibility to several NXP packs, offering, i.e. examples projects.

Those now contain a mixture of assembly source files using GNU Assembler syntax (e.g. startup_MIMXRT1062.s) and Arm syntax (e.g. irq_cm4f.s).

RESOLUTION

With MDK 5.30 (and later):

  • configure your project for the Assembler Optionarmclang (Autoselect)

     

With an earlier version than MDK 5.30:

  • select the option Assemble by using ArmClang V6

  • configure Misc Controls to -masm=auto

     

  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值