从ADS移植到MDK常见的警告和错误

警告

1. warning: A1608W: MOV pc, instruction used, but BX is preferred

mov pc,  换成 BX

2.warning:A1876W: Use of '|' as a synonym for the :OR: operator is deprecated.

把 | 换成 :OR:


错误

1. error: L6236E: No section matches selector - no section to be FIRST/LAST.

   *.o (RESET, +First) 改成*.o(Init, +First)   或把 AREA    Init,CODE,READONLY  改成AREA    RESET,CODE,READONLY 

2.Error: L6218E: Undefined symbol Image$$RW$$Limit (referred from 2440lib.o).

Image$$RW$$Limit 改成Image$$RW_RAM1$$Limit


你可能感兴趣的:(从ADS移植到MDK常见的警告和错误)