网上下载拉普兰德K60的库文件,把项目文件放到对应位置,没做任何改动时编译是正常的。
因为后面会用KL系列的单片机,就想把K60的代码移植到KL25上。把CPU配置改为MKL25Z128xxx4,Linker改为16KB_RAM.icf。编译时出错提示如下,请大家帮看看是怎么回事,谢谢。
Building configuration: LPLD_LedLight_K60 - RAM
Updating build tree...
Linking
Error[Lp002]: relocation failed: value out of range or illegal: 0x11de
Kind : R_ARM_THM_JUMP11[0x66]
Location: 0x1ffff420
Module: F:\LPLD_K60\LPLD_OSKinetis_V3\project\02-(GPIO)LPLD_LedLight\iar\RAM\Obj\startup_K60.o
Section: 9 (.noinit)
Offset: 0x0
Target : 0x20000603
"DefaultISR"
Module: F:\LPLD_K60\LPLD_OSKinetis_V3\project\02-(GPIO)LPLD_LedLight\iar\RAM\Obj\system_MK60DZ10.o
Section: 9 (.text)
Offset: 0x13b
Error while running Linker
Total number of errors: 1
Total number of warnings: 0
|