Request for Help to Load and Run one of the sama5d4x_xplained_softpack examples
Success: compiling the libraries from sama5d4x_xplained_softpack
I have installend a GNU Cross Compilation toolset on Windows 8.x. And I can successfully compile the libraries of sama5d4x_xplained_softpack_1.2_for_CodeSourcery_201410.
I build them from the make files, and I have the compiled debug and release versions of each library in the lib folder.
Fail: compiling the examples from sama5d4x_xplained_softpack
Once I go one step further and try to compile the examples, I get into errors. 132 of them.
Here's the start and end section of my log. The whole output is attached to the blog
16:43:44 **** Build of configuration Default for project Z_examples getting-started **** make all arm-none-eabi-gcc -Wall -Wchar-subscripts -Wcomment -Wformat=2 -Wimplicit-int -Werror-implicit-function-declaration -Wmain -Wparentheses -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunknown-pragmas -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wformat -Wmissing-format-attribute -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Dprintf=iprintf -mcpu=cortex-a5 -ffunction-sections -g -I../../../../libraries/libchip_sama5d4x -I../../../../libraries/libboard_sama5d4x-Xplained -I../../../../libraries -Dsama5d4x -DTRACE_LEVEL=4 -Dsram -c -o obj/sram_main.o ../../main.c ../../main.c: In function 'TC0_IrqHandler': ../../main.c:294:23: warning: variable 'dummy' set but not used [-Wunused-but-set-variable] volatile uint32_t dummy; ^ arm-none-eabi-gcc -L../../../../libraries/libchip_sama5d4x/lib -L../../../../libraries/libboard_sama5d4x-Xplained/lib -L=/lib -L=/../lib/gcc/arm-none-eabi/4.4.1 -mcpu=cortex-a5 -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=entry -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--print-gc-sections -Wl,--stats -T"../../../../libraries/libboard_sama5d4x-Xplained/resources/gcc/sama5d4x/sram.ld" -Wl,-Map,bin/getting-started-sram.map -o bin/getting-started-sram.elf obj/sram_main.o -Wl,--start-group -lgcc -lc -lchip_sama5d4x_gcc_rel -lboard_sama5d4x_Xplained_gcc_rel -Wl,--end-group c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.data' in file 'c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/armv7-ar/thumb/crtbegin.o' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.text' in file 'c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-ar/thumb/crt0.o' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.ARM.exidx' in file 'c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-ar/thumb/crt0.o' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.ARM.attributes' in file 'c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-ar/thumb/crt0.o' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.text.exit' in file 'c:\program files (x86)\gnu tools arm embedded\4.9 2015q1\bin\../arm-none-eabi/lib\libc.a(lib_a-exit.o)' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.debug_frame' in file 'c:\program files (x86)\gnu tools arm embedded\4.9 2015q1\bin\../arm-none-eabi/lib\libc.a(lib_a-exit.o)' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.ARM.attributes' in file 'c:\program files (x86)\gnu tools arm embedded\4.9 2015q1\bin\../arm-none-eabi/lib\libc.a(lib_a-exit.o)' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.text._iprintf_r' in file 'c:\program files (x86)\gnu tools arm embedded\4.9 2015q1\bin\../arm-none-eabi/lib\libc.a(lib_a-iprintf.o)' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.text.__sprint_r' in file 'c:\program files (x86)\gnu tools arm embedded\4.9 2015q1\bin\../arm-none-eabi/lib\libc.a(lib_a-vfiprintf.o)' ... c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.text.PIO_DisableWriteProtect' in file '../../../../libraries/libchip_sama5d4x/lib\libchip_sama5d4x_gcc_rel.a(pio.o)' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.text.PIO_GetWriteProtectViolationInfo' in file '../../../../libraries/libchip_sama5d4x/lib\libchip_sama5d4x_gcc_rel.a(pio.o)' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.text.PIO_Output_Low' in file '../../../../libraries/libchip_sama5d4x/lib\libchip_sama5d4x_gcc_rel.a(pio.o)' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.eh_frame' in file 'c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/armv7-ar/thumb/crtend.o' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.jcr' in file 'c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/armv7-ar/thumb/crtend.o' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: Removing unused section '.ARM.attributes' in file 'c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/armv7-ar/thumb/crtend.o' c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: total time in link: 0.062000 arm-none-eabi-nm bin/getting-started-ddram.elf >bin/getting-started-ddram.elf.txt arm-none-eabi-objcopy -O binary bin/getting-started-ddram.elf bin/getting-started-ddram.bin arm-none-eabi-size obj/ddram_main.o bin/getting-started-ddram.elf text data bss dec hex filename 1520 2 4 1526 5f6 obj/ddram_main.o 31412 0 22428 53840 d250 bin/getting-started-ddram.elf 16:43:49 Build Finished (took 4s.303ms)
That's where I am at the moment. Something tells me I'm close. But then again, maybe not .
It would be great if you could give me a nod in the right direction.
My intermediate goal is to be able to run a headless C program on the board, with or without linux. I'm happy if I can say "hello, world!".
Top Comments