Blink Thread example ok on T3.2 but fails to compile for TLC.(Arudino 1.8.8)

Status
Not open for further replies.

FredBlogs

Member
I tried to run simple BLINK using TeensyThread on an LC - the compiler was very apologetic about no being able honour any size requests, and died.
Switched to T3.2 and recompiled - magic no problem . have a txt file of the assembler hysterics if you want them.
(long and boring).
Mike
 
Which means that (wild guessing after you violating the forum rule and posting neither code to reproduce the problem, nor the compiler messages) your code does require too much resources which the small and weak chested TLC simply does not have.
 
OK - happy to provide, but didnot want to clog things up with rubbish if it was known problem.
Sketch - (examples) blink.ino
quote
#include <Arduino.h>
#include "TeensyThreads.h"

const int LED = 13;

volatile int blinkcode = 0;

void blinkthread() {
while(1) {
if (blinkcode) {
for (int i=0; i<blinkcode; i++) {
digitalWrite(LED, HIGH);
threads.delay(150);
digitalWrite(LED, LOW);
threads.delay(150);
}
blinkcode = 0;
}
threads.yield();
}
}

void setup() {
delay(1000);
pinMode(LED, OUTPUT);
threads.addThread(blinkthread);
}

int count = 0;

void loop() {
count++;
blinkcode = count;
delay(5000);
}
unquote.

compiler output - Ist TLC 2nd T3.2(worked).
--

// Compiled for the LC and it failed.
Arduino: 1.8.8 (Windows 10), TD: 1.45, Board: "Teensy LC, Serial, 48 MHz, Smallest Code, US English"

C:\Program Files (x86)\Alibtemp\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Alibtemp\Arduino\hardware -hardware C:\Users\Michael\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Alibtemp\Arduino\tools-builder -tools C:\Program Files (x86)\Alibtemp\Arduino\hardware\tools\avr -tools C:\Users\Michael\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Alibtemp\Arduino\libraries -libraries C:\Users\Michael\Documents\Arduino\libraries -fqbn=teensy:avr:teensyLC:usb=serial,speed=48,opt=osstd,keys=en-us -ide-version=10808 -build-path C:\Users\Michael\AppData\Local\Temp\arduino_build_324976 -warnings=default -verbose C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\examples\Blink\Blink.ino
C:\Program Files (x86)\Alibtemp\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Alibtemp\Arduino\hardware -hardware C:\Users\Michael\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Alibtemp\Arduino\tools-builder -tools C:\Program Files (x86)\Alibtemp\Arduino\hardware\tools\avr -tools C:\Users\Michael\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Alibtemp\Arduino\libraries -libraries C:\Users\Michael\Documents\Arduino\libraries -fqbn=teensy:avr:teensyLC:usb=serial,speed=48,opt=osstd,keys=en-us -ide-version=10808 -build-path C:\Users\Michael\AppData\Local\Temp\arduino_build_324976 -warnings=default -verbose C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\examples\Blink\Blink.ino
Using board 'teensyLC' from platform in folder: C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr
Using core 'teensy3' from platform in folder: C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr
Detecting libraries used...
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m0plus -fsingle-precision-constant -D__MKL26Z64__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\sketch\\Blink.ino.cpp" -o nul
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m0plus -fsingle-precision-constant -D__MKL26Z64__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\sketch\\Blink.ino.cpp" -o nul
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m0plus -fsingle-precision-constant -D__MKL26Z64__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads" "C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads\\TeensyThreads-asm.S" -o nul
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m0plus -fsingle-precision-constant -D__MKL26Z64__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads" "C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads\\TeensyThreads.cpp" -o nul
Generating function prototypes...
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m0plus -fsingle-precision-constant -D__MKL26Z64__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/precompile_helper" "C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976" "C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -Os --specs=nano.specs -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m0plus -fsingle-precision-constant -D__MKL26Z64__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/pch/Arduino.h" -o "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/pch/Arduino.h.gch"
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -Os --specs=nano.specs -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m0plus -fsingle-precision-constant -D__MKL26Z64__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/pch" "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling library "TeensyThreads"
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-gcc" -c -Os --specs=nano.specs -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -x assembler-with-cpp -mthumb -mcpu=cortex-m0plus -fsingle-precision-constant -D__MKL26Z64__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads" "C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads\\TeensyThreads-asm.S" -o "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\libraries\\TeensyThreads\\TeensyThreads-asm.S.o"
C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\TeensyThreads-asm.S: Assembler messages:

C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\TeensyThreads-asm.S:104: Error: cannot honor width suffix -- `cmp lr,#0xFFFFFFF1'

C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\TeensyThreads-asm.S:106: Error: cannot honor width suffix -- `cmp lr,#0xFFFFFFE1'

C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\TeensyThreads-asm.S:116: Error: lo register required -- `sub r1,#1'

C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\TeensyThreads-asm.S:136: Error: cannot honor width suffix -- `stmia r0!,{r4-r11,lr}'

C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\TeensyThreads-asm.S:161: Error: cannot honor width suffix -- `ldmia r0!,{r4-r11,lr}'

C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\TeensyThreads-asm.S:171: Error: cannot honor width suffix -- `and lr,lr,#0x10'

C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\TeensyThreads-asm.S:172: Error: cannot honor width suffix -- `orr lr,lr,#0xFFFFFFE9'

C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\TeensyThreads-asm.S:181: Error: cannot honor width suffix -- `orr lr,lr,#0b100'

Using library TeensyThreads at version 1.0 in folder: C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads
Error compiling for board Teensy LC.
----------------------------------------------------------
// same file compiled for "3.2"
C:\Program Files (x86)\Alibtemp\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Alibtemp\Arduino\hardware -hardware C:\Users\Michael\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Alibtemp\Arduino\tools-builder -tools C:\Program Files (x86)\Alibtemp\Arduino\hardware\tools\avr -tools C:\Users\Michael\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Alibtemp\Arduino\libraries -libraries C:\Users\Michael\Documents\Arduino\libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=96,opt=o2std,keys=en-us -ide-version=10808 -build-path C:\Users\Michael\AppData\Local\Temp\arduino_build_324976 -warnings=default -verbose C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\examples\Blink\Blink.ino
C:\Program Files (x86)\Alibtemp\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Alibtemp\Arduino\hardware -hardware C:\Users\Michael\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Alibtemp\Arduino\tools-builder -tools C:\Program Files (x86)\Alibtemp\Arduino\hardware\tools\avr -tools C:\Users\Michael\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Alibtemp\Arduino\libraries -libraries C:\Users\Michael\Documents\Arduino\libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=96,opt=o2std,keys=en-us -ide-version=10808 -build-path C:\Users\Michael\AppData\Local\Temp\arduino_build_324976 -warnings=default -verbose C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\examples\Blink\Blink.ino
Using board 'teensy31' from platform in folder: C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr
Using core 'teensy3' from platform in folder: C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr
Detecting libraries used...
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\sketch\\Blink.ino.cpp" -o nul
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\sketch\\Blink.ino.cpp" -o nul
Using cached library dependencies for file: C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\TeensyThreads-asm.S
Using cached library dependencies for file: C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads\TeensyThreads.cpp
Generating function prototypes...
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/precompile_helper" "C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976" "C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/pch/Arduino.h" -o "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/pch/Arduino.h.gch"
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\pch\Arduino.h.gch

"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/pch" "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling library "TeensyThreads"
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\libraries\TeensyThreads\TeensyThreads-asm.S.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\libraries\TeensyThreads\TeensyThreads.cpp.o
Compiling core...
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\memset.S.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\memcpy-armv7m.S.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\eeprom.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_desc.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\serial6.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\touch.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\serial1.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\serial6_lpuart.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\serial2.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\pins_teensy.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_serial.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_mtp.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\keylayouts.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\ser_print.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\analog.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\nonstd.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\mk20dx128.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_joystick.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\math_helper.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_midi.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_keyboard.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_mouse.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_mem.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_dev.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_touch.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_rawhid.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\serial4.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\serial3.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\serial5.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_seremu.c.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\Stream.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\WString.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\HardwareSerial5.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_flightsim.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\AudioStream.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\avr_emulation.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\new.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\DMAChannel.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\HardwareSerial3.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\yield.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\main.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\EventResponder.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\Print.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_inst.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\HardwareSerial1.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\HardwareSerial2.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\IPAddress.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\HardwareSerial6.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\HardwareSerial4.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\IntervalTimer.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\usb_audio.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\Tone.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\WMath.cpp.o
Using previously compiled file: C:\Users\Michael\AppData\Local\Temp\arduino_build_324976\core\core.a
Linking everything together...
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-gcc" -O2 -Wl,--gc-sections,--relax,--defsym=__rtc_localtime=1555663566 "-TC:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/mk20dx256.ld" -lstdc++ -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -o "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/Blink.ino.elf" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\sketch\\Blink.ino.cpp.o" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\libraries\\TeensyThreads\\TeensyThreads-asm.S.o" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976\\libraries\\TeensyThreads\\TeensyThreads.cpp.o" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/core\\core.a" "-LC:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976" -larm_cortexM4l_math -lm
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/Blink.ino.elf" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/Blink.ino.eep"
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/Blink.ino.elf" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/Blink.ino.hex"
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/stdout_redirect" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/Blink.ino.lst" "C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-objdump" -d -S -C "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/Blink.ino.elf"
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/stdout_redirect" "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/Blink.ino.sym" "C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-objdump" -t -C "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/Blink.ino.elf"
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/teensy_post_compile" -file=Blink.ino "-path=C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976" "-tools=C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/" -board=TEENSY31
Opening Teensy Loader...

Using library TeensyThreads at version 1.0 in folder: C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy\avr\libraries\TeensyThreads
"C:\\Program Files (x86)\\Alibtemp\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-size" -A "C:\\Users\\Michael\\AppData\\Local\\Temp\\arduino_build_324976/Blink.ino.elf"
Sketch uses 14196 bytes (5%) of program storage space. Maximum is 262144 bytes.
Global variables use 4672 bytes (7%) of dynamic memory, leaving 60864 bytes for local variables. Maximum is 65536 bytes.
C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy/../tools/teensy_post_compile -file=Blink.ino -path=C:\Users\Michael\AppData\Local\Temp\arduino_build_324976 -tools=C:\Program Files (x86)\Alibtemp\Arduino\hardware\teensy/../tools -board=TEENSY31 -reboot -port=COM6 -portlabel=(null) -portprotocol=(null)

--

TIA
 
It just says Teensy Threads is not compatible with Teensy LC.
On the github page, there is no indication that it runs on a LC, too. The LC uses an ARM Cortex M0+, Teensy 3.x ARM Cortex, M4 - different CPU cores.
You see, these messages are not boring or rubbish - they tell you exactly whats wrong. Here, incompatible assembler code.
 
Thanks - that was fairly obvious from the long winded whine from the compiler.
But a simple note in the example file saying LC can't do it would have stopped me clogging up this forum.
I now wonder what other horrors the LC holds for me...
 
I now wonder what other horrors the LC holds for me...
Meticulous project engineering comprises the selection of suitable hardware with the help of data sheets, programming manuals, etc., after defining the abstract specifications. If this is respected, you should not run into horror or other bad surprises. :)
 
Yes I agree, when you are preparing a product for market. the TLC is a member of the teensy range, and should have been designed with the whole range in mind. Agreed that the TLC is an el cheapo version, but the compiler 'not honoring ' the request for a numeric type is not really the result of meticulous engineering, nor testing. Lets stop lecturing each other.
On an other tack - how to I get my original ID back on line - between me, windoze10 and your website we lost contact and I have created FredBlogs in order to find out what was up with sketch, but I'd like to get my old one back and kill Fred. TIA
 
The T_LC is an Awesome improvement over the standard UNO type Arduino Speed/cost/Size/PJRC_Bootloader/Pinout/Resources shares much in common with all the 32 bit PJRC Teensy family including this forum and much of the library base where possible - but does have constraints from the more affordable M0+ MCU used - a necessary design tradeoff.
 
The T_LC is an Awesome improvement over the standard UNO type Arduino Speed/cost/Size/PJRC_Bootloader/Pinout/Resources shares much in common with all the 32 bit PJRC Teensy family including this forum and much of the library base where possible - but does have constraints from the more affordable M0+ MCU used - a necessary design trade-off.
I do not disagree with the improvement bit, but I do feel that It is included in the Teensy range, so old fogies like me (T2 assembler) ->68030 asm) expect members of a range to be software compatible.
At 82 years, I really don't want to be digging through the source (if it is available) to simulate the numeric construct the TLC CPU 'cannot do'.
This is getting stupid - All I wanted to know was ' was this normal undocumented behaviour' and I get lectured on not reading the cpu data sheet to find out if your published example 'C' code - when translated into binary - will work on the TLC.
 
TeensyThreads is a 3rd party library. It's published by an individual not associated with PJRC.

Likewise, Theremingenieur doesn't directly represent or speak for PJRC. Yeah, this thread has unusually disrespectful language and I'm not happy about that. Later this year, well after T4 is released, perhaps it will be time to reconsider for forum's rule.

And on the forum behavior, the thing we consider to "clog things up" are questions *without* necessary detail. That is why the message at the top of every page says to post all necessary info.

Everything kinda went off the rails on this thread. Please, let's all try to be helpful to each either, if possible?
 
TeensyThreads is a 3rd party library. It's published by an individual not associated with PJRC.

Likewise, Theremingenieur doesn't directly represent or speak for PJRC. Yeah, this thread has unusually disrespectful language and I'm not happy about that. Later this year, well after T4 is released, perhaps it will be time to reconsider for forum's rule.

And on the forum behavior, the thing we consider to "clog things up" are questions *without* necessary detail. That is why the message at the top of every page says to post all necessary info.

Everything kinda went off the rails on this thread. Please, let's all try to be helpful to each either, if possible?
Thank you. I did not pickup the fact T-Threads was 3rd party - mea culpa - Clogging up - sorry, I was putting finger in water first. Wrong Move :-(
OH I got my original ID back working - I was using FredBlogs 'cos this ID had gone walkabout (fumble fingers). When you get time, could you point me to the descriptions of the datatype that the assembler regretfully refused to handle for the TLC ?email? regards - Mike
 
TeensyThreads is a 3rd party library. It's published by an individual not associated with PJRC.

Likewise, Theremingenieur doesn't directly represent or speak for PJRC. Yeah, this thread has unusually disrespectful language and I'm not happy about that. Later this year, well after T4 is released, perhaps it will be time to reconsider for forum's rule.

And on the forum behavior, the thing we consider to "clog things up" are questions *without* necessary detail. That is why the message at the top of every page says to post all necessary info.

Everything kinda went off the rails on this thread. Please, let's all try to be helpful to each either, if possible?

I did neither intend to « directly represent or speak for PJRC », nor did I intend to use disrespectful language. What I did intend was, as one of the many volunteers here, give a quick (in a hurry while preparing the Passover holidays) help or hint by summarizing what I considered being common sense and obvious:
First, that most times, no real help can be given without seeing the code and other detail, that’s why the forum rule is visible on top of each page in bold and red letters.
Second, after seeing the compiler output, that the problem was with a third party library and due to a CPU incompatibility.
Third, that there are different Teensys with different specifications similar to Mercedes, where they have a A class (Teensy LC), a C class (the Teensy 3.x series) and a E class (the upcoming T4.x series). Although all are Mercedes, they can’t be directly compared and there are different use cases for each of them. You wouldn’t buy an A class to pull a 2 ton trailer. In a similar way, one wouldn’t choose a Teensy LC for a multi threading environment, especially since there is no dedicated software/library support.

If my (non native English speaker) semantics have given the impression of unusually disrespectful language under these circumstances, please accept my sincere apologies!
 
I did neither intend to « directly represent or speak for PJRC », nor did I intend to use disrespectful language. What I did intend was, as one of the many volunteers here, give a quick (in a hurry while preparing the Passover holidays) help or hint by summarizing what I considered being common sense and obvious:
First, that most times, no real help can be given without seeing the code and other detail, that’s why the forum rule is visible on top of each page in bold and red letters.
Second, after seeing the compiler output, that the problem was with a third party library and due to a CPU incompatibility.
Third, that there are different Teensys with different specifications similar to Mercedes, where they have a A class (Teensy LC), a C class (the Teensy 3.x series) and a E class (the upcoming T4.x series). Although all are Mercedes, they can’t be directly compared and there are different use cases for each of them. You wouldn’t buy an A class to pull a 2 ton trailer. In a similar way, one wouldn’t choose a Teensy LC for a multi threading environment, especially since there is no dedicated software/library support.

If my (non native English speaker) semantics have given the impression of unusually disrespectful language under these circumstances, please accept my sincere apologies!

1st please accept my sadness on your countries Lunar Lander failure - so far so near. :-(
The failure type I have found seems to be endemic to the Arduino ecology - pity.
I do understand the problems both caused and solved by the use of English as a common language - having worked in various parts of the world - misunderstandings can easily creep in.
What kept me coming back was your flat assumption that the TLC's cpu was not capable of emulating the C++ data type that the assembler threw out.
I may be old, but I started in computers when a small computer needed a triple garage to live in, & I stayed programming throughout - though I am just a hobbyist now.
I do appreciate the workload associate with getting product to market.
And I do appreciate the fact that many people like yourselves spend your free time assisting others - without charge.
I was not trying to emulate Windows 11 on the TLC, I just wanted to look at very simple small cpu time sharing. - for fun.
Thanks for a good product range.
Mike
 
Status
Not open for further replies.
Back
Top