20150421.jpeg

 

 

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.

 

eclipse.jpg

 

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!".

 

 

Table of Contents
Chapter 1: Fix the turntable
1: Perpetuum Ebner Musical 1
2: A Time to Kill and a Time to Heal
3: Preparation for Motor Drive
4: Motor control with Infineon Motor Shield and Arduino UNO
5: Turntable speed sample testbed with Arduino UNO
6: Turntable Speed Sensor design
7: Control Theory - End of Chapter 1
Chapter 2: First Enchantments
8: Digital Light Organ Enchantment
9: Autonomous Servo Lift
10: SMD Time - Solder the IR Speed Sensor PCB
11: Yelp - who can Help me to Compile and Run my First SAMA5D4 C Program
12: Son et Lumiere - End of Chapter 2
Chapter 3: Taming the Board
13: Breakthrough - Run my own C++ Program on the SAMA5D4
14: Digital Light Organ Input Buffer
15: SAMA5D4 Blinky
16: Scope Creep
17: Audio Sampling with 16-bit ADC ADS8343
18: Sending Files to SAMA5D4 over USB
19: Port my Light Organ from Arduino to SAMA5D4
20: Fast Fourier Transform on the SAMA5D4 - End of Chapter 3
Epilogue: Reaching for the Clouds
21: Right-Sizing my Plans
22: My Own C++ Buffered Sampler on the SAMA5D4
Interlude
23: Building In the Motorized Light Organ
24: Up to the Clouds with Yún
25: Publish or Perish
26: Turntable Finished
Stretch & Boni
Bonus 1a: Remote Light Organ with WiFI pt. 1
Bonus 1b: Remote Light Organ with WiFI pt. 2
Grande Finale: Paho MQTT Client on the SAMA5D4
Related blog
Vintage Turntable repair: Can I fix a Perpetuum Ebner from 1958
Review 1: Atmel SMART SAMA5D4 Xplained Ultra Unboxing and First Steps
Review 2: Atmel SMART SAMA5D4 Xplained Ultra - Building the Libraries from Source
Review 3: Digital Continuous Rotation (360°) Servo Part 1
Review 4: Digital Continuous Rotation (360°) Servo Part 2
Review 5: Atmel SMART SAMA5D4 Xplained Ultra - TCP/IP running
Review 6: Atmel SMART SAMA5D4 Xplained Ultra - LINUX Distro with SSH support
poem
Enchanted Objects: Let's work together to tame the ATMEL SMART SAMA5D4 Xplained Ultra kit
17 bis: Off South...
Review 7: Atmel SMART SAMA5D4 Xplained Ultra - C++ ADC Example on Linux
Review 8: Atmel SMART SAMA5D4 Xplained Ultra - Product Review
Review 9a: Atmel SMART SAMA5D4 Xplained Ultra - Set up ADC Buffer with Hardware Trigger Part 1
Review 9b: Atmel SMART SAMA5D4 Xplained Ultra - Set up ADC Buffer with Hardware Trigger Part 2
Review 10: Atmel SMART SAMA5D4 Xplained Ultra - New Content on AT91.com
1958 Turntable from the Black Forest - Summary of the Enchanted Player Story