Howdy all,
I am working with a teensy 3.2 in the Arduino IDE environment (Arduino 1.8.5, Teensyduino 1.41).
Just went to upload a slight modification of the code that I have been working on and got the error below. I then tried uploading the blink example (the simplest hello world I could think of) both to it and a backup teensy 3.2. And tried rebooting computer. All resulted inn error below consistently.Oddly, changing the USB type under tools from 'Serial' to 'All the things' seems to allow me to upload code fine. Any idea what is going on?
Linking everything together...
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-gcc" -O2 -Wl,--gc-sections,--relax,--defsym=__rtc_localtime=1519406355 "-TC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/mk20dx256.ld" -lstdc++ -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -o "C:\Users\shado\AppData\Local\Temp\ArduinoServer\MW/arr_loop_allpins.ino.elf" "C:\Users\shado\AppData\Local\Temp\ArduinoServer\MW\sketch\arr_loop_allpins.ino.cpp.o" "C:\Users\shado\AppData\Local\Temp\ArduinoServer\MW/..\..\arduino_cache_279896\core\core_teensy_avr_teensy31_usb_serial,speed_72,opt_o2std,keys_en-us_4939f5412a75a8560acb0f9e98268f02.a" "-LC:\Users\shado\AppData\Local\Temp\ArduinoServer\MW" -larm_cortexM4l_math -lm
C:\Users\shado\AppData\Local\Temp\ArduinoServer\MW/..\..\arduino_cache_279896\core\core_teensy_avr_teensy31_usb_serial,speed_72,opt_o2std,keys_en-us_4939f5412a75a8560acb0f9e98268f02.a(mk20dx128.c.o): In function `ResetHandler':
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/mk20dx128.c:1130: undefined reference to `main'
C:\Users\shado\AppData\Local\Temp\ArduinoServer\MW/..\..\arduino_cache_279896\core\core_teensy_avr_teensy31_usb_serial,speed_72,opt_o2std,keys_en-us_4939f5412a75a8560acb0f9e98268f02.a(pins_teensy.c.o): In function `delay':
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/pins_teensy.c:1197: undefined reference to `yield'
collect2.exe: error: ld returned 1 exit status
Error compiling for board Teensy 3.2 / 3.1.
I am working with a teensy 3.2 in the Arduino IDE environment (Arduino 1.8.5, Teensyduino 1.41).
Just went to upload a slight modification of the code that I have been working on and got the error below. I then tried uploading the blink example (the simplest hello world I could think of) both to it and a backup teensy 3.2. And tried rebooting computer. All resulted inn error below consistently.Oddly, changing the USB type under tools from 'Serial' to 'All the things' seems to allow me to upload code fine. Any idea what is going on?
Linking everything together...
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-gcc" -O2 -Wl,--gc-sections,--relax,--defsym=__rtc_localtime=1519406355 "-TC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/mk20dx256.ld" -lstdc++ -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -o "C:\Users\shado\AppData\Local\Temp\ArduinoServer\MW/arr_loop_allpins.ino.elf" "C:\Users\shado\AppData\Local\Temp\ArduinoServer\MW\sketch\arr_loop_allpins.ino.cpp.o" "C:\Users\shado\AppData\Local\Temp\ArduinoServer\MW/..\..\arduino_cache_279896\core\core_teensy_avr_teensy31_usb_serial,speed_72,opt_o2std,keys_en-us_4939f5412a75a8560acb0f9e98268f02.a" "-LC:\Users\shado\AppData\Local\Temp\ArduinoServer\MW" -larm_cortexM4l_math -lm
C:\Users\shado\AppData\Local\Temp\ArduinoServer\MW/..\..\arduino_cache_279896\core\core_teensy_avr_teensy31_usb_serial,speed_72,opt_o2std,keys_en-us_4939f5412a75a8560acb0f9e98268f02.a(mk20dx128.c.o): In function `ResetHandler':
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/mk20dx128.c:1130: undefined reference to `main'
C:\Users\shado\AppData\Local\Temp\ArduinoServer\MW/..\..\arduino_cache_279896\core\core_teensy_avr_teensy31_usb_serial,speed_72,opt_o2std,keys_en-us_4939f5412a75a8560acb0f9e98268f02.a(pins_teensy.c.o): In function `delay':
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/pins_teensy.c:1197: undefined reference to `yield'
collect2.exe: error: ld returned 1 exit status
Error compiling for board Teensy 3.2 / 3.1.