Hi Headroom - thanks for link.
Yes I would rather get on with my project - its just making a guess as to what the best methods are and where the trip wires are
.
I do appreciate the help and suggestions
, however I'm cautious as to where Teensy31 is on the issue of using Arduino 1.5.2 - howevever if the end result is upgrading the gcc then that is what I've done going from Teensy3 1.18 with gcc 4.7 to gcc 4.8.3 (2013q4) (BTW a friend using 4.8.3 had some issues with symbols/JTAG )
I'm thankful to report that I've got a working build - for whatever reason and I'm trying a number of options - when I switched gcc to 2013q4 and it worked.
All I did was change on path to the 2013q4 compiler and it linked OK.
Still haven't tried testing it so thats the next stage.
In case its useful for anybody I include some traces I took.
cheers
21:17:01 **** Incremental Build of configuration Release for project remMon **** WORKED
make all
'Building file: ../src/usb_inst.cpp'
'Invoking: Cross ARM C++ Compiler'
arm-none-eabi-g++
-mcpu=cortex-m4 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -D__MK20DX256__ -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I"C:\Users\neilh77\n\c\w3\remMon\src" -MMD -MP -MF"src/usb_inst.d" -MT"src/usb_inst.d" -c -o "src/usb_inst.o" "../src/usb_inst.cpp"
In file included from ../src/Print.h:38:0,
from ../src/Stream.h:24,
from ../src/HardwareSerial.h:143,
from ../src/WProgram.h:16,
from ../src/usb_inst.cpp:31:
../src/WString.h: In constructor 'String::String(double, unsigned char)':
../src/WString.h:67:72: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 [enabled by default]
String(double num, unsigned char digits=2) : String((float)num, digits) {}
^
'Finished building: ../src/usb_inst.cpp'
'Building file: ../src/yield.c'
'Invoking: Cross ARM C Compiler'
arm-none-eabi-gcc
-mcpu=cortex-m4 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -D__MK20DX256__ -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I"C:\Users\neilh77\n\c\w3\remMon\src" -MMD -MP -MF"src/yield.d" -MT"src/yield.d" -c -o "src/yield.o" "../src/yield.c"
'Finished building: ../src/yield.c'
'Building target: remMon.elf'
'Invoking: Cross ARM C++ Linker'
arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -T ../src/mk20dx256.ld -Xlinker --gc-sections -Wl,-Map,"remMon.map" -v -o "remMon.elf" ./src/HardwareSerial1.o ./src/HardwareSerial2.o ./src/HardwareSerial3.o ./src/IPAddress.o ./src/IntervalTimer.o ./src/Print.o ./src/Stream.o ./src/Tone.o ./src/WMath.o ./src/WString.o ./src/analog.o ./src/avr_emulation.o ./src/eeprom.o ./src/keylayouts.o ./src/main.o ./src/math_helper.o ./src/mk20dx128.o ./src/new.o ./src/nonstd.o ./src/pins_teensy.o ./src/serial1.o ./src/serial2.o ./src/serial3.o ./src/touch.o ./src/usb_desc.o ./src/usb_dev.o ./src/usb_flightsim.o ./src/usb_inst.o ./src/usb_joystick.o ./src/usb_keyboard.o ./src/usb_mem.o ./src/usb_midi.o ./src/usb_mouse.o ./src/usb_rawhid.o ./src/usb_seremu.o ./src/usb_serial.o ./src/yield.o
Using built-in specs.
COLLECT_GCC=arm-none-eabi-g++
COLLECT_LTO_WRAPPER=c:/program\ files/gnu\ tools\ arm\ embedded/4.8\ 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/lto-wrapper.exe
Target: arm-none-eabi
Configured with: /home/build/work/GCC-4-8-build/src/gcc/configure --build=i686-linux-gnu --host=i586-mingw32 --target=arm-none-eabi --prefix=/home/build/work/GCC-4-8-build/install-mingw --libexecdir=/home/build/work/GCC-4-8-build/install-mingw/lib --infodir=/home/build/work/GCC-4-8-build/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/home/build/work/GCC-4-8-build/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/home/build/work/GCC-4-8-build/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/home/build/work/GCC-4-8-build/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/home/build/work/GCC-4-8-build/install-mingw/arm-none-eabi --with-libiconv-prefix=/home/build/work/GCC-4-8-build/build-mingw/host-libs/usr --with-gmp=/home/build/work/GCC-4-8-build/build-mingw/host-libs/usr --with-mpfr=/home/build/work/GCC-4-8-build/build-mingw/host-libs/usr --with-mpc=/home/build/work/GCC-4-8-build/build-mingw/host-libs/usr --with-isl=/home/build/work/GCC-4-8-build/build-mingw/host-libs/usr --with-cloog=/home/build/work/GCC-4-8-build/build-mingw/host-libs/usr --with-libelf=/home/build/work/GCC-4-8-build/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors' --with-multilib-list=armv6-m,armv7-m,armv7e-m,armv7-r
Thread model: single
gcc version 4.8.3 20131129 (release) [ARM/embedded-4_8-branch revision 205641] (GNU Tools for ARM Embedded Processors)
COMPILER_PATH=c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/;c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/;c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/
LIBRARY_PATH=c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/armv7e-m/;c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7e-m/;c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../arm-none-eabi/lib/armv7e-m/;c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/;c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/;c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/;c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../arm-none-eabi/lib/
COLLECT_GCC_OPTIONS='-mcpu=cortex-m4' '-mthumb' '-O0' '-fmessage-length=0' '-fsigned-char' '-ffunction-sections' '-fdata-sections' '-Wall' '-g3'
'-T' '../src/mk20dx256.ld' '-v'
'-o' 'remMon.elf'
c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/collect2.exe --sysroot=c:\program files\gnu tools arm embedded\4.8 2013q4\bin\../arm-none-eabi -X -o remMon.elf c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/armv7e-m/crti.o c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/armv7e-m/crtbegin.o c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7e-m/crt0.o -Lc:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/armv7e-m -Lc:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7e-m -Lc:/program files/gnu tools arm embedded/4.8 2013q4/bin/../arm-none-eabi/lib/armv7e-m -Lc:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3 -Lc:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc -Lc:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib -Lc:/program files/gnu tools arm embedded/4.8 2013q4/bin/../arm-none-eabi/lib --gc-sections -Map remMon.map ./src/HardwareSerial1.o ./src/HardwareSerial2.o ./src/HardwareSerial3.o ./src/IPAddress.o ./src/IntervalTimer.o ./src/Print.o ./src/Stream.o ./src/Tone.o ./src/WMath.o ./src/WString.o ./src/analog.o ./src/avr_emulation.o ./src/eeprom.o ./src/keylayouts.o ./src/main.o ./src/math_helper.o ./src/mk20dx128.o ./src/new.o ./src/nonstd.o ./src/pins_teensy.o ./src/serial1.o ./src/serial2.o ./src/serial3.o ./src/touch.o ./src/usb_desc.o ./src/usb_dev.o ./src/usb_flightsim.o ./src/usb_inst.o ./src/usb_joystick.o ./src/usb_keyboard.o ./src/usb_mem.o ./src/usb_midi.o ./src/usb_mouse.o ./src/usb_rawhid.o ./src/usb_seremu.o ./src/usb_serial.o ./src/yield.o -lstdc++ -lm --start-group -lgcc -lg -lc --end-group c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/armv7e-m/crtend.o c:/program files/gnu tools arm embedded/4.8 2013q4/bin/../lib/gcc/arm-none-eabi/4.8.3/armv7e-m/crtn.o -T ../src/mk20dx256.ld
'Finished building target: remMon.elf'
' '
'Invoking: Cross ARM GNU Create Flash Image'
arm-none-eabi-objcopy -O ihex "remMon.elf" "remMon.hex"
'Finished building: remMon.hex'
' '
'Invoking: Cross ARM GNU Print Size'
arm-none-eabi-size --format=berkeley "remMon.elf"
text data bss dec hex filename
76632 2356 4052 83040 14460 remMon.elf
'Finished building: remMon.siz'
21:03:45 **** Incremental Build of configuration Release for project remMon **** FAILED
make all
'Building file: ../src/usb_inst.cpp'
'Invoking: Cross ARM C++ Compiler'
arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -D__MK20DX256__ -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I"C:\Users\neilh77\n\c\w3\remMon\src" -MMD -MP -MF"src/usb_inst.d" -MT"src/usb_inst.d" -c -o "src/usb_inst.o" "../src/usb_inst.cpp"
In file included from ../src/Print.h:38:0,
from ../src/Stream.h:24,
from ../src/HardwareSerial.h:143,
from ../src/WProgram.h:16,
from ../src/usb_inst.cpp:31:
../src/WString.h: In constructor 'String::String(double, unsigned char)':
../src/WString.h:67:72: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 [enabled by default]
'Finished building: ../src/usb_inst.cpp'
' '
'Invoking: Cross ARM C Compiler'
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -D__MK20DX256__ -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I"C:\Users\neilh77\n\c\w3\remMon\src" -MMD -MP -MF"src/yield.d" -MT"src/yield.d" -c -o "src/yield.o" "../src/yield.c"
'Finished building: ../src/yield.c'
' '
'Building target: remMon.elf'
'Invoking: Cross ARM C++ Linker'
arm-none-eabi-g++ -
mcpu=cortex-m4 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -T ../src/mk20dx256.ld -Xlinker --gc-sections -Wl,-Map,"remMon.map" -o "remMon.elf" ./src/HardwareSerial1.o ./src/HardwareSerial2.o ./src/HardwareSerial3.o ./src/IPAddress.o ./src/IntervalTimer.o ./src/Print.o ./src/Stream.o ./src/Tone.o ./src/WMath.o ./src/WString.o ./src/analog.o ./src/avr_emulation.o ./src/eeprom.o ./src/keylayouts.o ./src/main.o ./src/math_helper.o ./src/mk20dx128.o ./src/new.o ./src/nonstd.o ./src/pins_teensy.o ./src/serial1.o ./src/serial2.o ./src/serial3.o ./src/touch.o ./src/usb_desc.o ./src/usb_dev.o ./src/usb_flightsim.o ./src/usb_inst.o ./src/usb_joystick.o ./src/usb_keyboard.o ./src/usb_mem.o ./src/usb_midi.o ./src/usb_mouse.o ./src/usb_rawhid.o ./src/usb_seremu.o ./src/usb_serial.o ./src/yield.o
c:/program files/arduino/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/ld.exe: section
.ARM.extab.text._ZN14HardwareSerial5beginEm loaded at [00014284,0001428f] overlaps section .data loaded at [00014284,000148bf]
collect2.exe: error: ld returned 1 exit status
make: *** [remMon.elf] Error 1