关键词: 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