I'm trying to recompile the serialflash applet for SAM-BA 2.9 or 2.10 to add support for an SST serial flash chip.
If I try to compile the applet with the 2010q1 Codesourcery toolchain, I get the "cannot use register index with PC-relative addressing" error described in this thread: forum/viewtopic.php/p,32660/#p32660
The thread suggests that perhaps the 2008q1 version of Codesourcery would work. When I use that version instead, I get a new error:
Code: Select all
$ cs-make clean BOARD=at91sam9g20-ek CHIP=at91sam9g20 sdram Makefile:193: warning: overriding commands for target `debug' Makefile:193: warning: ignoring old commands for target `debug' Makefile:193: warning: overriding commands for target `debug' Makefile:193: warning: ignoring old commands for target `debug' rm -f obj/*.o bin/*.bin bin/*.elf bin/*.map arm-none-eabi-gcc -g -Os -I../../at91lib/boards/at91sam9g20-ek -I../../at91lib/peripherals -I../../at91lib/memories -I../../at91lib -Dat91sam9g20 -D__ASSEMBLY__ -Dsdram -c -o obj/sdram_isp_cstartup.o ../common/isp_cstartup.S This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. cs-make: *** [obj/sdram_isp_cstartup.o] Error 3
Any suggestions? Is there a different toolchain that is known to work for compiling applets?