关键词: SAM BA GNU MAKE ATMEL arm-none-eabi-gcc 抵岸科技
由于项目的原因,需要修改并定制SAM BA,但在定制SAM BA的时候,遇到一个问题:我用厂商提供的源代码进行编译时,竟然报错。报错信息如下:
D:/TDDOWNLOAD/isp_patch/AT91-ISP v1.13/sam-ba 2.9/applets/isp-project/nandflash>
make clean BOARD=at91sam9g20-ek CHIP=at91sam9g20 sdram
makefile:221: 警告:覆盖关于目标“debug”的命令
makefile:221: 警告:忽略关于目标“debug”的旧命令
makefile:221: 警告:覆盖关于目标“debug”的命令
makefile:221: 警告:忽略关于目标“debug”的旧命令
rm -f obj/*.o bin/*.bin bin/*.elf bin/*.map
arm-none-eabi-gcc -Wall -g -Os -I../../at91lib/boards/at91sam9g20-ek -I../../at
91lib/peripherals -I../../at91lib/memories -I../../at91lib -Dat91sam9g20 -D__ASS
EMBLY__ -Dsdram -c -o obj/sdram_isp_cstartup.o ../common/isp_cstartup.S
../common/isp_cstartup.S: Assembler messages:
../common/isp_cstartup.S:82: Error: cannot use register index with PC-relative a
ddressing -- `str r1,[pc,#-(8+.-isInitialized)]'
make: *** [obj/sdram_isp_cstartup.o] 错误 1

在定制SAM BA过程中,使用厂商源代码编译时遇到错误,报错与makefile及arm-none-eabi-gcc相关。尝试屏蔽代码后虽能编译但导致烧写NANDFLASH失败。错误出现在汇编代码行82,与PC相对寻址有关。问题由arm-none-eabi-gcc版本过高引起,降级到4.3.3版本可解决。
最低0.47元/天 解锁文章
372

被折叠的 条评论
为什么被折叠?



