My Teensy LC and loader were working yesterday, now it gets an error sending reboot command to /dev/hidraw4.
From Arduino IDE, File > Examples > 01.Basics > Blink
Then click Upload. The resulting error message is:
I followed the instructions on https://www.pjrc.com/teensy/troubleshoot.html > Teensy Not Recognized by Teensy Loader
And still get the same error.
When I press the button on Teensy, the Teensy Loader window briefly says, "Programming" then "Reboot OK".
The Teensy is part of a keyboard, and it is typing letters as intended, so that proves that Teensy is plugged in, recognized by the operating system, and the keyboard program was not overwritten by boot loader.
What else can I trouble shoot?
From Arduino IDE, File > Examples > 01.Basics > Blink
Then click Upload. The resulting error message is:
Code:
Arduino: 1.8.5 (Linux), TD: 1.42, Board: "Teensy LC, Serial, 48 MHz, Smallest Code, US English"
/opt/arduino-1.8.5/arduino-builder -dump-prefs -logger=machine -hardware /opt/arduino-1.8.5/hardware -tools /opt/arduino-1.8.5/tools-builder -tools /opt/arduino-1.8.5/hardware/tools/avr -built-in-libraries /opt/arduino-1.8.5/libraries -libraries /home/wolfv/Documents/Arduino/libraries -fqbn=teensy:avr:teensyLC:usb=serial,speed=48,opt=osstd,keys=en-us -ide-version=10805 -build-path /tmp/arduino_build_137928 -warnings=all -build-cache /tmp/arduino_cache_485240 -verbose /opt/arduino-1.8.5/examples/01.Basics/Blink/Blink.ino
/opt/arduino-1.8.5/arduino-builder -compile -logger=machine -hardware /opt/arduino-1.8.5/hardware -tools /opt/arduino-1.8.5/tools-builder -tools /opt/arduino-1.8.5/hardware/tools/avr -built-in-libraries /opt/arduino-1.8.5/libraries -libraries /home/wolfv/Documents/Arduino/libraries -fqbn=teensy:avr:teensyLC:usb=serial,speed=48,opt=osstd,keys=en-us -ide-version=10805 -build-path /tmp/arduino_build_137928 -warnings=all -build-cache /tmp/arduino_cache_485240 -verbose /opt/arduino-1.8.5/examples/01.Basics/Blink/Blink.ino
Using board 'teensyLC' from platform in folder: /opt/arduino-1.8.5/hardware/teensy/avr
Using core 'teensy3' from platform in folder: /opt/arduino-1.8.5/hardware/teensy/avr
Detecting libraries used...
"/opt/arduino-1.8.5/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=142 -DARDUINO=10805 -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/opt/arduino-1.8.5/hardware/teensy/avr/cores/teensy3" "/tmp/arduino_build_137928/sketch/Blink.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/opt/arduino-1.8.5/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=142 -DARDUINO=10805 -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/opt/arduino-1.8.5/hardware/teensy/avr/cores/teensy3" "/tmp/arduino_build_137928/sketch/Blink.ino.cpp" -o "/tmp/arduino_build_137928/preproc/ctags_target_for_gcc_minus_e.cpp"
"/opt/arduino-1.8.5/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_137928/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/opt/arduino-1.8.5/hardware/teensy/../tools/precompile_helper" "/opt/arduino-1.8.5/hardware/teensy/avr/cores/teensy3" "/tmp/arduino_build_137928" "/opt/arduino-1.8.5/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=142 -DARDUINO=10805 -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/opt/arduino-1.8.5/hardware/teensy/avr/cores/teensy3" "/tmp/arduino_build_137928/pch/Arduino.h" -o "/tmp/arduino_build_137928/pch/Arduino.h.gch"
Using previously compiled file: /tmp/arduino_build_137928/pch/Arduino.h.gch
"/opt/arduino-1.8.5/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=142 -DARDUINO=10805 -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/tmp/arduino_build_137928/pch" "-I/opt/arduino-1.8.5/hardware/teensy/avr/cores/teensy3" "/tmp/arduino_build_137928/sketch/Blink.ino.cpp" -o "/tmp/arduino_build_137928/sketch/Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core
Linking everything together...
"/opt/arduino-1.8.5/hardware/teensy/../tools/arm/bin/arm-none-eabi-gcc" -Os --specs=nano.specs -Wl,--gc-sections,--relax,--defsym=__rtc_localtime=1534211464 "-T/opt/arduino-1.8.5/hardware/teensy/avr/cores/teensy3/mkl26z64.ld" -lstdc++ -mthumb -mcpu=cortex-m0plus -fsingle-precision-constant -o "/tmp/arduino_build_137928/Blink.ino.elf" "/tmp/arduino_build_137928/sketch/Blink.ino.cpp.o" "/tmp/arduino_build_137928/../arduino_cache_485240/core/core_teensy_avr_teensyLC_usb_serial,speed_48,opt_osstd,keys_en-us_6010e3e74486a956d991e12861411f25.a" "-L/tmp/arduino_build_137928" -larm_cortexM0l_math -lm
"/opt/arduino-1.8.5/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 "/tmp/arduino_build_137928/Blink.ino.elf" "/tmp/arduino_build_137928/Blink.ino.eep"
"/opt/arduino-1.8.5/hardware/teensy/../tools/arm/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "/tmp/arduino_build_137928/Blink.ino.elf" "/tmp/arduino_build_137928/Blink.ino.hex"
"/opt/arduino-1.8.5/hardware/teensy/../tools/stdout_redirect" "/tmp/arduino_build_137928/Blink.ino.lst" "/opt/arduino-1.8.5/hardware/teensy/../tools/arm/bin/arm-none-eabi-objdump" -d -S -C "/tmp/arduino_build_137928/Blink.ino.elf"
"/opt/arduino-1.8.5/hardware/teensy/../tools/stdout_redirect" "/tmp/arduino_build_137928/Blink.ino.sym" "/opt/arduino-1.8.5/hardware/teensy/../tools/arm/bin/arm-none-eabi-objdump" -t -C "/tmp/arduino_build_137928/Blink.ino.elf"
"/opt/arduino-1.8.5/hardware/teensy/../tools/teensy_post_compile" "-file=Blink.ino" "-path=/tmp/arduino_build_137928" "-tools=/opt/arduino-1.8.5/hardware/teensy/../tools/" "-board=TEENSYLC"
Sketch uses 6600 bytes (10%) of program storage space. Maximum is 63488 bytes.
Global variables use 2088 bytes (25%) of dynamic memory, leaving 6104 bytes for local variables. Maximum is 8192 bytes.
/opt/arduino-1.8.5/hardware/teensy/../tools/teensy_post_compile -file=Blink.ino -path=/tmp/arduino_build_137928 -tools=/opt/arduino-1.8.5/hardware/teensy/../tools -board=TEENSYLC -reboot -port=/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4 -portlabel=/dev/hidraw4 (Teensy LC) Keyboard -portprotocol=Teensy
error sending reboot command to /dev/hidraw4
Teensy did not respond to a USB-based request to enter program mode.
Please press the PROGRAM MODE BUTTON on your Teensy to upload your sketch.
the selected serial port Please press the PROGRAM MODE BUTTON on your Teensy to upload your sketch.
does not exist or your board is not connected
Invalid library found in /home/wolfv/Documents/Arduino/libraries/keybrd_knuckle: /home/wolfv/Documents/Arduino/libraries/keybrd_knuckle
Invalid library found in /home/wolfv/Documents/Arduino/libraries/keybrd_knuckle: /home/wolfv/Documents/Arduino/libraries/keybrd_knuckle
And still get the same error.
When I press the button on Teensy, the Teensy Loader window briefly says, "Programming" then "Reboot OK".
The Teensy is part of a keyboard, and it is typing letters as intended, so that proves that Teensy is plugged in, recognized by the operating system, and the keyboard program was not overwritten by boot loader.
What else can I trouble shoot?
Last edited: