记录DS-5上工程AC5移植到AC6的奇葩问题

1:LDMIA  sp!, {lr, r1}

warning: register list not in ascending order

解决方法:LDMIA  sp!, {r1, lr}

 

2:    .global  _tx_thread_context_save
_tx_thread_context_save:

Error: L6286E: Relocation #REL:4 in startup.o(StartUp) with respect to _tx_thread_context_save. Value(0x8000202) out of range(-0x00800000 - 0x7fffff) for (R_ARM_JUMP24)

解决方法:.global  _tx_thread_context_save

                  .type _tx_thread_context_save, function
_tx_thread_context_save:

 

3:汇编文件中#include,#ifdef没起作用

解决方法:在settings->Arm Assembler6->Miscellaneous加上 -x assembler-with-cpp,表示Assembly code containing C directives that require the C preprocessor.

 

4:'~PRES8 (The user did not require code to preserve 8-byte data objects)' section vectors.o(.text) should not use the address of 'REQ8 (Code was permitted to depend on the 8-byte aligment of 8-byte data items)' function Undefined_Handler.

解决方法:文件开头加    .eabi_attribute Tag_ABI_align_preserved, 1

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值