(i'm new) 4.1 non-communication.

RNoble

Member
first, i'm new to C++ - my rudimentary background is in HTML/CSS/JS.
my 8yo wanted to learn to program LEDs because i have them on my motorcycle and all over the house. now we are learning C++ and Arduino.

there seems to be a communication problem with the 4.1.
the IDE doesn't show connection and i'm not seeing any settings that would change it. the orange LED is doing it's slow blinky thing. pressing the "program button" changes it to the red LED. nothing else seems to happen and the program doesn't run.

most recent verbose log; duplicates the information from previous attempts.
15:39:15.473 (loader): file changed
15:39:15.502 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
15:39:15.518 (loader): File "teensy_start_file.ino.hex". 26624 bytes
15:39:15.525 (post_compile 21): Begin, pid=9076, version=1.59, high-res time
15:39:15.540 (loader): remote connection 2836 opened
15:39:15.551 (post_compile 21): ARDUINO_USER_AGENT = "arduino-cli/1.0.4 arduino-ide/2.3.3 grpc-node-js/1.9.5"
15:39:15.551 (post_compile 21): Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)
15:39:15.561 (loader): remote cmd from 2836: "comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)"
15:39:15.573 (loader): remote cmd from 2836: "status"
15:39:15.590 (loader): remote cmd from 2836: "dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\"
15:39:15.590 (post_compile 21): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
15:39:15.590 (post_compile 21): Sending command: dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\
15:39:15.601 (post_compile 21): Sending command: file:teensy_start_file.ino.hex
15:39:15.601 (loader): remote cmd from 2836: "file:teensy_start_file.ino.hex"
15:39:15.622 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
15:39:15.630 (loader): File "teensy_start_file.ino.hex". 26624 bytes
15:39:15.652 (loader): remote cmd from 2836: "status"
15:39:15.664 (post_compile 21): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
15:39:15.664 (post_compile 21): Disconnect
15:39:15.701 (loader): remote connection 2836 closed
15:39:16.092 (post_compile 22): Begin, pid=3272, version=1.59, high-res time
15:39:16.095 (loader): remote connection 2836 opened
15:39:16.111 (post_compile 22): ARDUINO_USER_AGENT = "arduino-cli/1.0.4 arduino-ide/2.3.3 grpc-node-js/1.9.5"
15:39:16.111 (post_compile 22): port = "COM3"
15:39:16.111 (post_compile 22): Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)
15:39:16.111 (loader): remote cmd from 2836: "comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)"
15:39:16.123 (loader): remote cmd from 2836: "status"
15:39:16.140 (loader): remote cmd from 2836: "dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\"
15:39:16.140 (post_compile 22): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
15:39:16.140 (post_compile 22): Sending command: dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\
15:39:16.150 (loader): remote cmd from 2836: "file:teensy_start_file.ino.hex"
15:39:16.150 (post_compile 22): Sending command: file:teensy_start_file.ino.hex
15:39:16.171 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
15:39:16.180 (loader): File "teensy_start_file.ino.hex". 26624 bytes
15:39:16.205 (loader): remote cmd from 2836: "status"
15:39:16.219 (post_compile 22): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
15:39:16.219 (post_compile 22): Disconnect
15:39:16.233 (post_compile 23): Running teensy_reboot: "C:\Users\Leon\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\1.59.0\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY41" "-port=COM3" "-portlabel={serial.port.label}" "-portprotocol={serial.port.protocol}"
15:39:16.249 (loader): remote connection 2836 closed
15:39:16.271 (loader): remote connection 2836 opened
15:39:16.303 (reboot 24): Begin, pid=21764, version=1.59, high-res time
15:39:16.303 (reboot 24): location = COM3
15:39:16.303 (reboot 24): portlabel = {serial.port.label}
15:39:16.303 (reboot 24): portprotocol = {serial.port.protocol}
15:39:16.303 (reboot 24): LoadLibrary cfgmgr32 ok
15:39:16.303 (reboot 24): LoadLibrary ntdll ok
15:39:16.307 (reboot 24): nothing new, skipping HID & Ports enum
15:39:16.307 (reboot 24): usb scan found 0 devices
15:39:16.322 (loader): remote connection 3860 opened
15:39:16.339 (reboot 24): Disconnect
15:39:16.390 (loader): remote connection 3860 closed
15:39:16.411 (loader): remote connection 2836 closed


code that is running (with my notes, examples, and other mistakes), confirmed by running it on an UNO, which works great on the UNO.
///
///
/// @brief An animation that moves a single LED back and forth (Larson Scanner effect)
/// @example Cylon.ino
#include <FastLED.h>







// How many strips?
#define NUM_STRIPS 1
// How many leds in your strip?
#define NUM_LEDS_PER_STRIP 144
// what does this line do?
#define NUM_LEDS NUM_LEDS_PER_STRIP * NUM_STRIPS


// Learn what this line does.
CRGB leds[NUM_STRIPS * NUM_LEDS_PER_STRIP];




// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
// ground, and power), like the LPD8806, define both DATA_PIN and CLOCK_PIN
//#define DATA_PIN 13
//#define DATA_PIN 11
//#define CLOCK_PIN 11
// CHSV definitions
// red (95, 255, 255);
// green (0, 255, 255);
// blue (160, 255, 255);
// cyan (210, 255, 255);
// magenta (127, 255, 255);
// yellow (45, 255, 255);
// white (100, 0, 255);
// amber (82, 255, 255);
// active color fade options
// gold fade to red (75, 180, 90);
// cyan fade to green (225, 180, 90);
//
// opposing tails
// purple lead red to blue (127, 180, 90) - (143, 180, 90);
// Define the array of leds
//CRGB leds[NUM_LEDS];
void setup() {


while (!Serial) { }; // for Leos
Serial.begin(9600);


// For mirroring strips, all the "special" stuff happens just in setup. We
// just addLeds multiple times, once for each strip
// tell FastLED there's 144 NEOPIXEL leds on pin 13, starting at index 0 in the led array
FastLED.addLeds<WS2812, 2>(leds, 0, NUM_LEDS_PER_STRIP);
FastLED.addLeds<WS2812, 14>(leds, 0, NUM_LEDS_PER_STRIP);
// tell FastLED there's 144 NEOPIXEL leds on pin 11, starting at index 144 in the led array
//FastLED.addLeds<WS2812B, 11>(leds, NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);
// tell FastLED there's 60 NEOPIXEL leds on pin 4, starting at index 120 in the led array
//FastLED.addLeds<NEOPIXEL, 4>(leds, 2 * NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);
//FastLED.setBrightness(20);
}
void fadeall() { for(int i = 0; i < NUM_LEDS; i++) { leds.nscale8(250); } }
void loop() {


{
for(int i = 0; i < NUM_LEDS; i++) // First slide the led in one direction
{
leds = CHSV(127, 180, 90); // Set color
FastLED.show(); // Show the leds
// leds = CRGB::Black; // reset to black
fadeall(); //fade
delay(20); // Wait a little bit before we loop around and do it again
}
for(int i = (NUM_LEDS)-1; i >= 0; i--) // Now go in the other direction.
{
leds = CHSV(143, 180, 90); // Set color
FastLED.show(); // Show the leds
// leds = CRGB::Black; // reset to black - no fade
fadeall(); // fade
delay(20); // Wait a little bit before we loop around and do it again
}
}

}


what am i missing?
 
Maybe you have a charger-only USB cable. You need a USB data cable for communication to Teensy. Many people get caught off-guard on this.

Once you establish communication, while (!Serial) ; line in your setup() function, will wait forever if not plugged into PC USB port. You can replace that line with a timeout like this: while (!Serial && (millis() < 3000)); and code will move ahead after 3 seconds.

BTW, how are you powering Teensy?
 
Maybe you have a charger-only USB cable. You need a USB data cable for communication to Teensy. Many people get caught off-guard on this.

Once you establish communication, while (!Serial) ; line in your setup() function, will wait forever if not plugged into PC USB port. You can replace that line with a timeout like this: while (!Serial && (millis() < 3000)); and code will move ahead after 3 seconds.

BTW, how are you powering Teensy?



power for programming is coming from USB.
power to run the project after installation hasn't been decided.
LEDs are 12V and being powered separately.

i've run through 3 or 4 cables, but a lot of my cables are from unknown sources. tried a couple of others and ended up with this:
22:47:30.271 (loader): file changed
22:47:30.289 (post_compile 25): Begin, pid=25456, version=1.59, high-res time
22:47:30.324 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
22:47:30.338 (loader): File "teensy_start_file.ino.hex". 26624 bytes
22:47:30.382 (loader): remote connection 2712 opened
22:47:30.398 (post_compile 25): ARDUINO_USER_AGENT = "arduino-cli/1.0.4 arduino-ide/2.3.3 grpc-node-js/1.9.5"
22:47:30.398 (post_compile 25): Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)
22:47:30.398 (loader): remote cmd from 2712: "comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)"
22:47:30.420 (loader): remote cmd from 2712: "status"
22:47:30.438 (post_compile 25): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:30.438 (post_compile 25): Sending command: dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\
22:47:30.439 (loader): remote cmd from 2712: "dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\"
22:47:30.455 (loader): remote cmd from 2712: "file:teensy_start_file.ino.hex"
22:47:30.456 (post_compile 25): Sending command: file:teensy_start_file.ino.hex
22:47:30.483 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
22:47:30.492 (loader): File "teensy_start_file.ino.hex". 26624 bytes
22:47:30.519 (loader): remote cmd from 2712: "status"
22:47:30.535 (post_compile 25): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:30.535 (post_compile 25): Disconnect
22:47:30.592 (loader): remote connection 2712 closed
22:47:31.195 (post_compile 26): Begin, pid=24156, version=1.59, high-res time
22:47:31.199 (loader): remote connection 2580 opened
22:47:31.216 (loader): remote cmd from 2580: "comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)"
22:47:31.217 (post_compile 26): ARDUINO_USER_AGENT = "arduino-cli/1.0.4 arduino-ide/2.3.3 grpc-node-js/1.9.5"
22:47:31.217 (post_compile 26): port = "COM3"
22:47:31.217 (post_compile 26): Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)
22:47:31.233 (loader): remote cmd from 2580: "status"
22:47:31.257 (post_compile 26): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:31.257 (post_compile 26): Sending command: dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\
22:47:31.257 (loader): remote cmd from 2580: "dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\"
22:47:31.270 (post_compile 26): Sending command: file:teensy_start_file.ino.hex
22:47:31.270 (loader): remote cmd from 2580: "file:teensy_start_file.ino.hex"
22:47:31.295 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
22:47:31.305 (loader): File "teensy_start_file.ino.hex". 26624 bytes
22:47:31.331 (loader): remote cmd from 2580: "status"
22:47:31.348 (post_compile 26): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:31.349 (post_compile 26): Disconnect
22:47:31.372 (post_compile 27): Running teensy_reboot: "C:\Users\Leon\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\1.59.0\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY41" "-port=COM3" "-portlabel={serial.port.label}" "-portprotocol={serial.port.protocol}"
22:47:31.407 (loader): remote connection 2580 closed
22:47:31.432 (loader): remote connection 2580 opened
22:47:31.503 (reboot 28): Begin, pid=20384, version=1.59, high-res time
22:47:31.503 (reboot 28): location = COM3
22:47:31.503 (reboot 28): portlabel = {serial.port.label}
22:47:31.503 (reboot 28): portprotocol = {serial.port.protocol}
22:47:31.503 (reboot 28): LoadLibrary cfgmgr32 ok
22:47:31.503 (reboot 28): LoadLibrary ntdll ok
22:47:31.506 (reboot 28): found_usb_device, id=\\?\usb#vid_16c0&pid_0486#16375870#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
22:47:31.506 (reboot 28): found_usb_device, loc=usb:0/140000/0/7/1/2 Port_#0002.Hub_#0010
22:47:31.506 (reboot 28): found_usb_device, hwid=USB\VID_16C0&PID_0486&REV_0280
22:47:31.506 (reboot 28): found_usb_device, devinst=0000000c
22:47:31.506 (reboot 28): add: loc=usb:0/140000/0/7/1/2, class=USB, vid=16C0, pid=0486, ver=0280, serial=16375870, dev=\\?\usb#vid_16c0&pid_0486#16375870#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
22:47:31.507 (reboot 28): hiddev_from_devinst_list: iface=1
22:47:31.508 (reboot 28): 00000015: path=\\?\hid#vid_16c0&pid_0486&mi_01#9&39df3418&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
22:47:31.510 (reboot 28): found_usb_device complete
22:47:31.511 (reboot 28): hid, found devinst=00000013
22:47:31.511 (reboot 28): hid, found devinst=00000015
22:47:31.512 (reboot 28): usb scan found 1 devices
22:47:31.515 (loader): remote connection 2836 opened
22:47:31.525 (loader): remote cmd from 2836: "show:arduino_attempt_reboot"
22:47:31.526 (reboot 28): found Teensy Loader, version 1.58
22:47:31.526 (reboot 28): Sending command: show:arduino_attempt_reboot
22:47:31.539 (loader): got request to show arduino rebooting message
22:47:31.614 (loader): remote cmd from 2836: "comment: Teensyduino 1.59 - WINDOWS (teensy_reboot)"
22:47:31.614 (reboot 28): Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_reboot)
22:47:31.631 (loader): remote cmd from 2836: "status"
22:47:31.648 (loader): remote cmd from 2836: "status"
22:47:31.648 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:31.648 (reboot 28): hid_send_feature
22:47:31.667 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:31.667 (reboot 28): status read, retry 0
22:47:31.775 (loader): remote cmd from 2836: "status"
22:47:31.796 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:31.796 (reboot 28): status read, retry 1
22:47:31.899 (loader): remote cmd from 2836: "status"
22:47:31.916 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:31.916 (reboot 28): status read, retry 2
22:47:32.022 (loader): remote cmd from 2836: "status"
22:47:32.039 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:32.039 (reboot 28): status read, retry 3
22:47:32.146 (loader): remote cmd from 2836: "status"
22:47:32.164 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:32.164 (reboot 28): status read, retry 4
22:47:32.271 (loader): remote cmd from 2836: "status"
22:47:32.296 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:32.296 (reboot 28): status read, retry 5
22:47:32.411 (loader): remote cmd from 2836: "status"
22:47:32.428 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:32.428 (reboot 28): status read, retry 6
22:47:32.534 (loader): remote cmd from 2836: "status"
22:47:32.554 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:32.554 (reboot 28): status read, retry 7
22:47:32.666 (loader): remote cmd from 2836: "status"
22:47:32.688 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:32.688 (reboot 28): status read, retry 8
22:47:32.797 (loader): remote cmd from 2836: "status"
22:47:32.819 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:32.819 (reboot 28): status read, retry 9
22:47:32.925 (loader): remote cmd from 2836: "status"
22:47:32.946 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:32.946 (reboot 28): status read, retry 10
22:47:33.061 (loader): remote cmd from 2836: "status"
22:47:33.078 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:33.078 (reboot 28): status read, retry 11
22:47:33.188 (loader): remote cmd from 2836: "status"
22:47:33.207 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:33.207 (reboot 28): status read, retry 12
22:47:33.307 (loader): remote cmd from 2836: "status"
22:47:33.325 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:33.325 (reboot 28): status read, retry 13
22:47:33.432 (loader): remote cmd from 2836: "status"
22:47:33.450 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:33.450 (reboot 28): status read, retry 14
22:47:33.555 (loader): remote cmd from 2836: "status"
22:47:33.572 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:33.572 (reboot 28): status read, retry 15
22:47:33.679 (loader): remote cmd from 2836: "status"
22:47:33.696 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:33.696 (reboot 28): status read, retry 16
22:47:33.803 (loader): remote cmd from 2836: "status"
22:47:33.823 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:33.823 (reboot 28): status read, retry 17
22:47:33.927 (loader): remote cmd from 2836: "status"
22:47:33.946 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:33.946 (reboot 28): status read, retry 18
22:47:34.050 (loader): remote cmd from 2836: "status"
22:47:34.070 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:34.070 (reboot 28): status read, retry 19
22:47:34.173 (loader): remote cmd from 2836: "status"
22:47:34.195 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:34.195 (reboot 28): status read, retry 20
22:47:34.296 (loader): remote cmd from 2836: "status"
22:47:34.316 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:34.316 (reboot 28): status read, retry 21
22:47:34.420 (loader): remote cmd from 2836: "status"
22:47:34.438 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:34.438 (reboot 28): status read, retry 22
22:47:34.544 (loader): remote cmd from 2836: "status"
22:47:34.564 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:34.564 (reboot 28): status read, retry 23
22:47:34.667 (loader): remote cmd from 2836: "status"
22:47:34.685 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:34.685 (reboot 28): status read, retry 24
22:47:34.791 (loader): remote cmd from 2836: "status"
22:47:34.809 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:34.809 (reboot 28): status read, retry 25
22:47:34.915 (loader): remote cmd from 2836: "status"
22:47:34.938 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:34.938 (reboot 28): status read, retry 26
22:47:35.053 (loader): remote cmd from 2836: "status"
22:47:35.072 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:35.072 (reboot 28): status read, retry 27
22:47:35.177 (loader): remote cmd from 2836: "status"
22:47:35.197 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:35.197 (reboot 28): status read, retry 28
22:47:35.300 (loader): remote cmd from 2836: "status"
22:47:35.318 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:35.318 (reboot 28): status read, retry 29
22:47:35.423 (loader): remote cmd from 2836: "status"
22:47:35.442 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:35.442 (reboot 28): status read, retry 30
22:47:35.546 (loader): remote cmd from 2836: "status"
22:47:35.564 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:35.564 (reboot 28): status read, retry 31
22:47:35.668 (loader): remote cmd from 2836: "status"
22:47:35.688 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:35.688 (reboot 28): status read, retry 32
22:47:35.791 (loader): remote cmd from 2836: "status"
22:47:35.811 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:35.811 (reboot 28): status read, retry 33
22:47:35.913 (loader): remote cmd from 2836: "status"
22:47:35.930 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:35.930 (reboot 28): status read, retry 34
22:47:36.042 (loader): remote cmd from 2836: "status"
22:47:36.062 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:36.062 (reboot 28): status read, retry 35
22:47:36.175 (loader): remote cmd from 2836: "status"
22:47:36.194 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:36.194 (reboot 28): status read, retry 36
22:47:36.299 (loader): remote cmd from 2836: "status"
22:47:36.315 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:36.315 (reboot 28): status read, retry 37
22:47:36.422 (loader): remote cmd from 2836: "status"
22:47:36.439 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:36.439 (reboot 28): status read, retry 38
22:47:36.545 (loader): remote cmd from 2836: "status"
22:47:36.564 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:36.564 (reboot 28): status read, retry 39
22:47:36.669 (loader): remote cmd from 2836: "status"
22:47:36.687 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:36.687 (reboot 28): status read, retry 40
22:47:36.793 (loader): remote cmd from 2836: "status"
22:47:36.808 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:36.808 (reboot 28): status read, retry 41
22:47:36.915 (loader): remote cmd from 2836: "status"
22:47:36.934 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:36.934 (reboot 28): status read, retry 42
22:47:37.038 (loader): remote cmd from 2836: "status"
22:47:37.053 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:37.053 (reboot 28): status read, retry 43
22:47:37.161 (loader): remote cmd from 2836: "status"
22:47:37.177 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:37.177 (reboot 28): status read, retry 44
22:47:37.287 (loader): remote cmd from 2836: "status"
22:47:37.305 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:37.305 (reboot 28): status read, retry 45
22:47:37.410 (loader): remote cmd from 2836: "status"
22:47:37.427 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:37.427 (reboot 28): status read, retry 46
22:47:37.534 (loader): remote cmd from 2836: "status"
22:47:37.553 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:37.553 (reboot 28): status read, retry 47
22:47:37.660 (loader): remote cmd from 2836: "status"
22:47:37.676 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:37.676 (reboot 28): status read, retry 48
22:47:37.781 (loader): remote cmd from 2836: "status"
22:47:37.797 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:37.797 (reboot 28): status read, retry 49
22:47:37.906 (loader): remote cmd from 2836: "status"
22:47:37.922 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:37.922 (reboot 28): status read, retry 50
22:47:38.029 (loader): remote cmd from 2836: "status"
22:47:38.047 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:38.047 (reboot 28): status read, retry 51
22:47:38.154 (loader): remote cmd from 2836: "status"
22:47:38.170 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:38.170 (reboot 28): status read, retry 52
22:47:38.280 (loader): remote cmd from 2836: "status"
22:47:38.296 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:38.296 (reboot 28): status read, retry 53
22:47:38.408 (loader): remote cmd from 2836: "status"
22:47:38.424 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:38.424 (reboot 28): status read, retry 54
22:47:38.526 (loader): remote cmd from 2836: "status"
22:47:38.543 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:38.543 (reboot 28): status read, retry 55
22:47:38.650 (loader): remote cmd from 2836: "status"
22:47:38.666 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:38.666 (reboot 28): status read, retry 56
22:47:38.773 (loader): remote cmd from 2836: "status"
22:47:38.790 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:38.790 (reboot 28): status read, retry 57
22:47:38.896 (loader): remote cmd from 2836: "status"
22:47:38.913 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:38.913 (reboot 28): status read, retry 58
22:47:39.021 (loader): remote cmd from 2836: "status"
22:47:39.038 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:39.038 (reboot 28): status read, retry 59
22:47:39.145 (loader): remote cmd from 2836: "status"
22:47:39.161 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:39.161 (reboot 28): status read, retry 60
22:47:39.270 (loader): remote cmd from 2836: "status"
22:47:39.288 (reboot 28): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:47:39.288 (reboot 28): status read, retry 61
22:47:39.394 (reboot 28): Teensy did not respond to a USB-based request to automatically reboot.
22:47:39.471 (loader): remote connection 2836 closed
22:47:39.504 (loader): remote connection 2580 closed

LEDs have changed, but the sketch isn't functioning (did do a power cycle). keep in mind this isn't even close to the final program; just testing so that i understand the functions of compiling and already known to work sketch.

i'm not sure what's happening, but it appears that it's not happy with the reboot request not being answered...?
 
swapped that bit of code in to kill the serial read and got this:

22:56:14.839 (loader): file changed
22:56:14.855 (post_compile 29): Begin, pid=2088, version=1.59, high-res time
22:56:14.881 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
22:56:14.889 (loader): File "teensy_start_file.ino.hex". 26624 bytes
22:56:14.907 (loader): remote connection 2608 opened
22:56:14.918 (post_compile 29): ARDUINO_USER_AGENT = "arduino-cli/1.0.4 arduino-ide/2.3.3 grpc-node-js/1.9.5"
22:56:14.918 (post_compile 29): Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)
22:56:14.923 (loader): remote cmd from 2608: "comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)"
22:56:14.937 (loader): remote cmd from 2608: "status"
22:56:14.951 (post_compile 29): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:56:14.951 (post_compile 29): Sending command: dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\
22:56:14.951 (loader): remote cmd from 2608: "dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\"
22:56:14.960 (loader): remote cmd from 2608: "file:teensy_start_file.ino.hex"
22:56:14.961 (post_compile 29): Sending command: file:teensy_start_file.ino.hex
22:56:14.982 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
22:56:14.990 (loader): File "teensy_start_file.ino.hex". 26624 bytes
22:56:15.013 (loader): remote cmd from 2608: "status"
22:56:15.027 (post_compile 29): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:56:15.027 (post_compile 29): Disconnect
22:56:15.075 (loader): remote connection 2608 closed
22:56:53.687 (post_compile 30): Begin, pid=1532, version=1.59, high-res time
22:56:53.690 (loader): remote connection 3804 opened
22:56:53.704 (post_compile 30): ARDUINO_USER_AGENT = "arduino-cli/1.0.4 arduino-ide/2.3.3 grpc-node-js/1.9.5"
22:56:53.704 (post_compile 30): Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)
22:56:53.708 (loader): remote cmd from 3804: "comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)"
22:56:53.725 (loader): remote cmd from 3804: "status"
22:56:53.740 (loader): file changed
22:56:53.765 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
22:56:53.777 (loader): File "teensy_start_file.ino.hex". 26624 bytes
22:56:53.797 (post_compile 30): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:56:53.797 (post_compile 30): Sending command: dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\
22:56:53.800 (loader): remote cmd from 3804: "dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\"
22:56:53.815 (post_compile 30): Sending command: file:teensy_start_file.ino.hex
22:56:53.823 (loader): remote cmd from 3804: "file:teensy_start_file.ino.hex"
22:56:53.848 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
22:56:53.860 (loader): File "teensy_start_file.ino.hex". 26624 bytes
22:56:53.877 (loader): remote cmd from 3804: "status"
22:56:53.892 (post_compile 30): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:56:53.892 (post_compile 30): Disconnect
22:56:53.952 (loader): remote connection 3804 closed
22:56:54.297 (post_compile 31): Begin, pid=8224, version=1.59, high-res time
22:56:54.302 (loader): remote connection 2188 opened
22:56:54.315 (loader): remote cmd from 2188: "comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)"
22:56:54.315 (post_compile 31): ARDUINO_USER_AGENT = "arduino-cli/1.0.4 arduino-ide/2.3.3 grpc-node-js/1.9.5"
22:56:54.315 (post_compile 31): port = "COM3"
22:56:54.315 (post_compile 31): Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)
22:56:54.332 (loader): remote cmd from 2188: "status"
22:56:54.353 (post_compile 31): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:56:54.353 (post_compile 31): Sending command: dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\
22:56:54.354 (loader): remote cmd from 2188: "dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\"
22:56:54.364 (loader): remote cmd from 2188: "file:teensy_start_file.ino.hex"
22:56:54.365 (post_compile 31): Sending command: file:teensy_start_file.ino.hex
22:56:54.385 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
22:56:54.396 (loader): File "teensy_start_file.ino.hex". 26624 bytes
22:56:54.417 (loader): remote cmd from 2188: "status"
22:56:54.431 (post_compile 31): Status: 1, 1, 0, 0, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
22:56:54.431 (post_compile 31): Disconnect
22:56:54.454 (post_compile 32): Running teensy_reboot: "C:\Users\Leon\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\1.59.0\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY41" "-port=COM3" "-portlabel={serial.port.label}" "-portprotocol={serial.port.protocol}"
22:56:54.475 (loader): remote connection 2188 closed
22:56:54.498 (loader): remote connection 2608 opened
22:56:54.543 (reboot 33): Begin, pid=23244, version=1.59, high-res time
22:56:54.543 (reboot 33): location = COM3
22:56:54.543 (reboot 33): portlabel = {serial.port.label}
22:56:54.543 (reboot 33): portprotocol = {serial.port.protocol}
22:56:54.543 (reboot 33): LoadLibrary cfgmgr32 ok
22:56:54.543 (reboot 33): LoadLibrary ntdll ok
22:56:54.547 (reboot 33): nothing new, skipping HID & Ports enum
22:56:54.547 (reboot 33): usb scan found 0 devices
22:56:54.570 (loader): remote connection 2552 opened
22:56:54.591 (reboot 33): Disconnect
22:56:54.642 (loader): remote connection 2552 closed
22:56:54.663 (loader): remote connection 2608 closed


no change to the program running though.
 
You try to use COM3. Depending on your PC/laptop, COM3 could be an internal peripheral, and not the Teensy.
 
As noted by @BillFM , you have while (!Serial); in setup(). However, it’s not enough to be connected, you have to open the port, e.g. in the Arduino Serial Monitor, to allow the program to proceed past that. Or use his version with the 3-second timeout.

Please note for future reference that you must use the </> code tag to post a program, not the quote tag. The forum software eats [i] and uses it as a BBcode, making your text italic and nonsense of your code…
 
As noted by @BillFM , you have while (!Serial); in setup(). However, it’s not enough to be connected, you have to open the port, e.g. in the Arduino Serial Monitor, to allow the program to proceed past that. Or use his version with the 3-second timeout.

Please note for future reference that you must use the </> code tag to post a program, not the quote tag. The forum software eats [i] and uses it as a BBcode, making your text italic and nonsense of your code…
i'm a web guy. didn't change the meaning of anything in the code for me.


but sure... here you go.

C++:
///
///

/// @brief   An animation that moves a single LED back and forth (Larson Scanner effect)
/// @example Cylon.ino

#include <FastLED.h>








// How many strips?
#define NUM_STRIPS 1
// How many leds in your strip?
#define NUM_LEDS_PER_STRIP 144
// what does this line do?
#define NUM_LEDS NUM_LEDS_PER_STRIP * NUM_STRIPS



// Learn what this line does.
CRGB leds[NUM_STRIPS * NUM_LEDS_PER_STRIP];


 



// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN.  For led chipsets that are SPI based (four wires - data, clock,
// ground, and power), like the LPD8806, define both DATA_PIN and CLOCK_PIN
//#define DATA_PIN 13
//#define DATA_PIN 11
//#define CLOCK_PIN 11

// CHSV definitions
// red (95, 255, 255);
// green (0, 255, 255);
// blue (160, 255, 255);
// cyan (210, 255, 255);
// magenta (127, 255, 255);
// yellow (45, 255, 255);
// white (100, 0, 255);

// amber (82, 255, 255);

// active color fade options
// gold fade to red   (75, 180, 90);
// cyan fade to green  (225, 180, 90);
//
// opposing tails
// purple lead red to blue (127, 180, 90) - (143, 180, 90);

// Define the array of leds
//CRGB leds[NUM_LEDS];

void setup() {
    

    
    while (!Serial && (millis() < 3000)) // for Leos
    Serial.begin(9600);


 

  // For mirroring strips, all the "special" stuff happens just in setup.  We
// just addLeds multiple times, once for each strip

    // tell FastLED there's 144 NEOPIXEL leds on pin 13, starting at index 0 in the led array
  FastLED.addLeds<WS2812, 2>(leds, 0, NUM_LEDS_PER_STRIP);
  FastLED.addLeds<WS2812, 14>(leds, 439, NUM_LEDS_PER_STRIP);

  // tell FastLED there's 144 NEOPIXEL leds on pin 11, starting at index 144 in the led array
  //FastLED.addLeds<WS2812B, 11>(leds, NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);

  // tell FastLED there's 60 NEOPIXEL leds on pin 4, starting at index 120 in the led array
  //FastLED.addLeds<NEOPIXEL, 4>(leds, 2 * NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);
    //FastLED.setBrightness(20);
}

void fadeall() { for(int i = 0; i < NUM_LEDS; i++) { leds[i].nscale8(250); } }

void loop() {
 
   {
    for(int i = 0; i < NUM_LEDS; i++) // First slide the led in one direction
    {
        leds[i] = CHSV(127, 180, 90); // Set color               
        FastLED.show(); // Show the leds
        // leds[i] = CRGB::Black; // reset to black
        fadeall(); //fade
        delay(20); // Wait a little bit before we loop around and do it again
    }
    for(int i = (NUM_LEDS)-1; i >= 0; i--) // Now go in the other direction.
    {
        leds[i] = CHSV(143, 180, 90); // Set color             
        FastLED.show(); // Show the leds
          // leds[i] = CRGB::Black; // reset to black - no fade
        fadeall(); // fade       
        delay(20); // Wait a little bit before we loop around and do it again
    }
   }
 }
 
had an error in the IDE and restarted it.

the IDE is now outputting this:

Memory Usage on Teensy 4.1:
FLASH: code:13664, data:4040, headers:8916 free for files:8099844
RAM1: variables:6112, code:10968, padding:21800 free for local variables:485408
RAM2: variables:12416 free for malloc/new:511872
Teensy should be selected from "teensy ports" rather
than "Serial ports" in Arduino's Tools > Port menu

the verbose log is now producing this:

23:52:01.940 (loader): redraw, image 9
23:55:27.104 (loader): secure mode can be locked: this is Lockable Teensy
23:55:27.104 (loader): encryption is possible on this Teensy, but not yet configured
23:55:27.104 (loader): Device came online, code_size = 8126464
23:55:27.104 (loader): Board is: Teensy 4.1 (IMXRT1062), version 1.08
23:55:27.118 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
23:55:27.118 (loader): File "teensy_start_file.ino.hex". 26624 bytes, 0% used
23:55:27.160 (loader): set background IMG_ONLINE
23:55:27.179 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
23:55:27.179 (loader): File "teensy_start_file.ino.hex". 26624 bytes, 0% used
23:55:27.220 (loader): begin elf_guess_size
23:55:27.225 (loader): found elf file
23:55:27.226 (loader): read elf files into memory, 769044 bytes
23:55:27.226 (loader): elf appears to be for Teensy 4.1 (IMXRT1062) (8126464 bytes)
23:55:27.226 (loader): elf binary data matches hex file
23:55:27.226 (loader): elf file is for Teensy 4.1 (IMXRT1062) (id=25)
23:55:27.226 (loader): using hex file
23:55:27.284 (loader): begin operation
23:55:27.365 (loader): flash, block=0, bs=1024, auto=1
23:55:27.366 (loader): flash, block=1, bs=1024, auto=1
23:55:27.367 (loader): flash, block=2, bs=1024, auto=1
23:55:27.652 (loader): flash, block=3, bs=1024, auto=1
23:55:27.653 (loader): flash, block=4, bs=1024, auto=1
23:55:27.661 (loader): flash, block=5, bs=1024, auto=1
23:55:27.663 (loader): flash, block=6, bs=1024, auto=1
23:55:27.665 (loader): flash, block=7, bs=1024, auto=1
23:55:27.667 (loader): flash, block=8, bs=1024, auto=1
23:55:27.669 (loader): flash, block=9, bs=1024, auto=1
23:55:27.671 (loader): flash, block=10, bs=1024, auto=1
23:55:27.673 (loader): flash, block=11, bs=1024, auto=1
23:55:27.676 (loader): flash, block=12, bs=1024, auto=1
23:55:27.678 (loader): flash, block=13, bs=1024, auto=1
23:55:27.681 (loader): flash, block=14, bs=1024, auto=1
23:55:27.683 (loader): flash, block=15, bs=1024, auto=1
23:55:27.686 (loader): flash, block=16, bs=1024, auto=1
23:55:27.688 (loader): flash, block=17, bs=1024, auto=1
23:55:27.690 (loader): flash, block=18, bs=1024, auto=1
23:55:27.693 (loader): flash, block=19, bs=1024, auto=1
23:55:27.696 (loader): flash, block=20, bs=1024, auto=1
23:55:27.698 (loader): flash, block=21, bs=1024, auto=1
23:55:27.700 (loader): flash, block=22, bs=1024, auto=1
23:55:27.703 (loader): flash, block=23, bs=1024, auto=1
23:55:27.705 (loader): flash, block=24, bs=1024, auto=1
23:55:27.707 (loader): flash, block=25, bs=1024, auto=1
23:55:27.756 (loader): sending reboot
23:55:27.756 (loader): begin wait_until_offline
23:55:27.824 (loader): offline, waited 1
23:55:27.824 (loader): end operation, total time = 0.539 seconds
23:55:27.831 (loader): set background IMG_REBOOT_OK
23:55:27.835 (loader): redraw timer set, image 14 to show for 1200 ms
23:55:27.856 (loader): HID/win32: vid:046D pid:C534 ver:2901 usb:0/140000/0/7/2/3
23:55:27.856 (loader): HID/win32: vid:046D pid:C534 ver:2901 usb:0/140000/0/7/2/3
23:55:27.857 (loader): HID/win32: vid:046D pid:C534 ver:2901 usb:0/140000/0/7/2/3
23:55:27.857 (loader): HID/win32: vid:046D pid:C534 ver:2901 usb:0/140000/0/7/2/3
23:55:27.858 (loader): HID/win32: vid:08BB pid:2900 ver:0100 usb:0/140000/0/5/4/7
23:55:29.056 (loader): redraw, image 9
23:55:39.638 (loader): Verbose Info event
23:55:51.413 (loader): file changed
23:55:51.440 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
23:55:51.453 (loader): File "teensy_start_file.ino.hex". 26624 bytes
23:55:51.478 (post_compile 5): Begin, pid=24112, version=1.59, high-res time
23:55:51.488 (loader): remote connection 1952 opened
23:55:51.498 (post_compile 5): ARDUINO_USER_AGENT = "arduino-cli/1.0.4 arduino-ide/2.3.3 grpc-node-js/1.9.5"
23:55:51.498 (post_compile 5): Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)
23:55:51.500 (loader): remote cmd from 1952: "comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)"
23:55:51.510 (loader): remote cmd from 1952: "status"
23:55:51.527 (loader): remote cmd from 1952: "dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\"
23:55:51.527 (post_compile 5): Status: 1, 1, 0, 4, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:51.527 (post_compile 5): Sending command: dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\
23:55:51.538 (loader): remote cmd from 1952: "file:teensy_start_file.ino.hex"
23:55:51.538 (post_compile 5): Sending command: file:teensy_start_file.ino.hex
23:55:51.563 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
23:55:51.577 (loader): File "teensy_start_file.ino.hex". 26624 bytes
23:55:51.596 (loader): remote cmd from 1952: "status"
23:55:51.612 (post_compile 5): Status: 1, 1, 0, 4, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:51.612 (post_compile 5): Disconnect
23:55:51.646 (loader): remote connection 1952 closed
23:55:52.043 (post_compile 6): Begin, pid=1212, version=1.59, high-res time
23:55:52.048 (loader): remote connection 1952 opened
23:55:52.062 (post_compile 6): ARDUINO_USER_AGENT = "arduino-cli/1.0.4 arduino-ide/2.3.3 grpc-node-js/1.9.5"
23:55:52.062 (post_compile 6): port = "COM3"
23:55:52.062 (loader): remote cmd from 1952: "comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)"
23:55:52.062 (post_compile 6): Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)
23:55:52.075 (loader): remote cmd from 1952: "status"
23:55:52.097 (loader): remote cmd from 1952: "dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\"
23:55:52.097 (post_compile 6): Status: 1, 1, 0, 4, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:52.097 (post_compile 6): Sending command: dir:C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\
23:55:52.112 (loader): remote cmd from 1952: "file:teensy_start_file.ino.hex"
23:55:52.112 (post_compile 6): Sending command: file:teensy_start_file.ino.hex
23:55:52.134 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
23:55:52.148 (loader): File "teensy_start_file.ino.hex". 26624 bytes
23:55:52.168 (loader): remote cmd from 1952: "status"
23:55:52.182 (post_compile 6): Status: 1, 1, 0, 4, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:52.182 (post_compile 6): Disconnect
23:55:52.203 (post_compile 7): Running teensy_reboot: "C:\Users\Leon\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\1.59.0\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY41" "-port=COM3" "-portlabel={serial.port.label}" "-portprotocol={serial.port.protocol}"
23:55:52.215 (loader): remote connection 1952 closed
23:55:52.232 (loader): remote connection 1952 opened
23:55:52.275 (reboot 8): Begin, pid=22888, version=1.59, high-res time
23:55:52.275 (reboot 8): location = COM3
23:55:52.275 (reboot 8): portprotocol = {serial.port.protocol}
23:55:52.275 (reboot 8): portlabel = {serial.port.label}
23:55:52.275 (reboot 8): LoadLibrary cfgmgr32 ok
23:55:52.275 (reboot 8): LoadLibrary ntdll ok
23:55:52.277 (reboot 8): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#16375870#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
23:55:52.277 (reboot 8): found_usb_device, loc=usb:0/140000/0/7/1/2 Port_#0002.Hub_#0010
23:55:52.277 (reboot 8): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0280
23:55:52.277 (reboot 8): found_usb_device, devinst=0000000d
23:55:52.277 (reboot 8): add: loc=usb:0/140000/0/7/1/2, class=USB, vid=16C0, pid=0483, ver=0280, serial=16375870, dev=\\?\usb#vid_16c0&pid_0483#16375870#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
23:55:52.278 (reboot 8): comport_from_devinst_list attempt
23:55:52.278 (reboot 8): found Ports in classguid_list at index=1
23:55:52.278 (reboot 8): port COM4 found from devnode
23:55:52.278 (reboot 8): found_usb_device complete
23:55:52.281 (reboot 8): usb scan found 1 devices
23:55:52.292 (loader): remote connection 1860 opened
23:55:52.315 (reboot 8): found Teensy Loader, version 1.59
23:55:52.315 (reboot 8): Sending command: show:arduino_attempt_reboot
23:55:52.315 (loader): remote cmd from 1860: "show:arduino_attempt_reboot"
23:55:52.328 (loader): got request to show arduino rebooting message
23:55:52.345 (reboot 8): Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_reboot)
23:55:52.345 (loader): remote cmd from 1860: "comment: Teensyduino 1.59 - WINDOWS (teensy_reboot)"
23:55:52.357 (loader): remote cmd from 1860: "status"
23:55:52.380 (reboot 8): Status: 1, 1, 0, 4, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:52.380 (reboot 8): do_reset (serial) COM4
23:55:52.382 (loader): remote cmd from 1860: "status"
23:55:52.397 (reboot 8): Status: 1, 1, 0, 4, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:52.397 (reboot 8): status read, retry 0
23:55:52.497 (loader): remote cmd from 1860: "status"
23:55:52.512 (reboot 8): Status: 1, 1, 0, 4, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:52.512 (reboot 8): status read, retry 1
23:55:52.624 (loader): remote cmd from 1860: "status"
23:55:52.647 (reboot 8): Status: 1, 1, 0, 4, 0, 0, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:52.647 (reboot 8): status read, retry 2
23:55:52.721 (loader): secure mode can be locked: this is Lockable Teensy
23:55:52.736 (loader): encryption is possible on this Teensy, but not yet configured
23:55:52.760 (loader): Device came online, code_size = 8126464
23:55:52.772 (loader): Board is: Teensy 4.1 (IMXRT1062), version 1.08
23:55:52.796 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
23:55:52.808 (loader): File "teensy_start_file.ino.hex". 26624 bytes, 0% used
23:55:52.868 (loader): set background IMG_ONLINE
23:55:52.897 (loader): File "C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\teensy_start_file.ino.hex", 26624 bytes
23:55:52.910 (loader): File "teensy_start_file.ino.hex". 26624 bytes, 0% used
23:55:52.965 (loader): begin elf_guess_size
23:55:52.978 (loader): found elf file
23:55:52.995 (loader): read elf files into memory, 769044 bytes
23:55:53.014 (loader): elf appears to be for Teensy 4.1 (IMXRT1062) (8126464 bytes)
23:55:53.031 (loader): elf binary data matches hex file
23:55:53.047 (loader): elf file is for Teensy 4.1 (IMXRT1062) (id=25)
23:55:53.065 (loader): using hex file
23:55:53.130 (loader): begin operation
23:55:53.204 (loader): remote cmd from 1860: "status"
23:55:53.221 (reboot 8): Status: 1, 1, 1, 5, 0, 1, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:53.231 (loader): flash, block=0, bs=1024, auto=1
23:55:53.245 (loader): flash, block=1, bs=1024, auto=1
23:55:53.262 (loader): flash, block=2, bs=1024, auto=1
23:55:53.535 (loader): remote cmd from 1860: "status"
23:55:53.550 (reboot 8): Status: 1, 1, 1, 5, 0, 1, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:53.550 (loader): flash, block=3, bs=1024, auto=1
23:55:53.568 (loader): flash, block=4, bs=1024, auto=1
23:55:53.593 (loader): flash, block=5, bs=1024, auto=1
23:55:53.611 (loader): flash, block=6, bs=1024, auto=1
23:55:53.632 (loader): remote cmd from 1860: "status"
23:55:53.647 (reboot 8): Status: 1, 1, 1, 5, 0, 1, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:53.653 (loader): flash, block=7, bs=1024, auto=1
23:55:53.671 (loader): flash, block=8, bs=1024, auto=1
23:55:53.687 (loader): flash, block=9, bs=1024, auto=1
23:55:53.704 (loader): flash, block=10, bs=1024, auto=1
23:55:53.723 (loader): remote cmd from 1860: "status"
23:55:53.741 (reboot 8): Status: 1, 1, 1, 5, 0, 1, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:53.742 (loader): flash, block=11, bs=1024, auto=1
23:55:53.758 (loader): flash, block=12, bs=1024, auto=1
23:55:53.780 (loader): flash, block=13, bs=1024, auto=1
23:55:53.801 (loader): remote cmd from 1860: "status"
23:55:53.836 (reboot 8): Status: 1, 1, 1, 5, 0, 1, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:53.837 (loader): flash, block=14, bs=1024, auto=1
23:55:53.856 (loader): flash, block=15, bs=1024, auto=1
23:55:53.874 (loader): flash, block=16, bs=1024, auto=1
23:55:53.915 (loader): remote cmd from 1860: "status"
23:55:53.936 (reboot 8): Status: 1, 1, 1, 5, 0, 1, C:\Users\Leon\AppData\Local\Temp\arduino\sketches\5F0A702336C3608DE511EC2DB2599E6E\, teensy_start_file.ino.hex
23:55:53.937 (loader): flash, block=17, bs=1024, auto=1
23:55:53.958 (loader): flash, block=18, bs=1024, auto=1
23:55:53.978 (loader): flash, block=19, bs=1024, auto=1
23:55:53.996 (loader): flash, block=20, bs=1024, auto=1
23:55:53.999 (reboot 8): status read, retry 3
23:55:53.999 (reboot 8): Success
23:55:53.999 (reboot 8): Disconnect
23:55:54.075 (loader): remote connection 1860 closed
23:55:54.096 (loader): remote connection 1952 closed
23:55:54.112 (loader): flash, block=21, bs=1024, auto=1
23:55:54.129 (loader): flash, block=22, bs=1024, auto=1
23:55:54.145 (loader): flash, block=23, bs=1024, auto=1
23:55:54.162 (loader): flash, block=24, bs=1024, auto=1
23:55:54.181 (loader): flash, block=25, bs=1024, auto=1
23:55:54.274 (loader): sending reboot
23:55:54.290 (loader): begin wait_until_offline
23:55:54.304 (loader): offline, waited 0
23:55:54.323 (loader): end operation, total time = 1.179 seconds
23:55:54.353 (loader): set background IMG_REBOOT_OK
23:55:54.372 (loader): redraw timer set, image 14 to show for 1200 ms
23:55:54.513 (loader): HID/win32: vid:046D pid:C534 ver:2901 usb:0/140000/0/7/2/3
23:55:54.530 (loader): HID/win32: vid:046D pid:C534 ver:2901 usb:0/140000/0/7/2/3
23:55:54.546 (loader): HID/win32: vid:046D pid:C534 ver:2901 usb:0/140000/0/7/2/3
23:55:54.562 (loader): HID/win32: vid:046D pid:C534 ver:2901 usb:0/140000/0/7/2/3
23:55:54.578 (loader): HID/win32: vid:08BB pid:2900 ver:0100 usb:0/140000/0/5/4/7
23:55:55.576 (loader): redraw, image 9

and the LEDs are going bonkers.

it seems the communication issue is resolved (partially?), but the sketch is misbehaving.
 
I promise you, if you examine your posted code carefully at the point it goes italic, you will find a difference :)

It looks like you’re now into the vagaries of using FastLED on a Teensy 4.1, which is beyond my knowledge. A forum search may turn up some wisdom there, often does.

One thing I can say is that the Teensy is massively faster than a UNO, so any code in the FastLED library which assumes a few instructions between pin changes gives enough delay will likely fail. Also, it’s a 5V device and Teensy is 3.3V; that’s not really enough for some WS2812 parts, though I find I usually get away with it.
 
Your setup code needs t start with
Code:
void setup() {
   
    Serial.begin(9600);
    while (!Serial && (millis() < 3000)) // for Leos
NOT
Code:
void setup() {
   

   
    while (!Serial && (millis() < 3000)) // for Leos
    Serial.begin(9600);

As far as code "going bonkers" I am not sure of the solution to the technical term "going bonkers" is.
Can you expand on this technical term.
 
Your setup code needs t start with
Code:
void setup() {
  
    Serial.begin(9600);
    while (!Serial && (millis() < 3000)) // for Leos

It'd be better with
C++:
void setup() {
    Serial.begin(9600);
    while (!Serial && (millis() < 3000)) // until connected, or 3s has elapsed...
        ; // ...do nothing
...otherwise you'll be repeating the (unknown) next statement for 3 seconds, or until the serial port is opened!

I thoroughly dislike the habit of putting the semi-colon for the empty statement on the same line as the while(), as it further obfuscates the fact that it's going to stall doing nothing. The forum needs three (or more?) things stated plainly at the top of every section:
  • Post your code, using the </> code tags button
  • Check your USB cable isn't a charge-only one
  • Make sure any while(!Serial) in your setup() is timed out, or you open the port, otherwise your program will get stuck
 
FastLED is a large and complex library. It can do a lot, but there's a lot of opportunity for things to go wrong. It also has an overly ambitious built in WS2812 driver that might have issues with longer LED strips or more complex usage. Diving into its details is on my to-do list... (no small task, as the FastLED code is built with a lot of complex C++ template stuff)

For the sake of checking your hardware, I'd recommend trying WS2812Serial. It is much simpler, and it uses the serial hardware and DMA so it's very reliable. The only downside is it only supports specific pins. In Arduino IDE, click File > Examples > WS2812Serial > BasicTest. You'll see the supported pins mentioned in the examples. I'd recommend testing with this example program, at least until you see your LEDs do something sensible rather than "bonkers".

My main advise right now is to use BasicTest, so you're testing your hardware with the simplest and most reliable "known quantity" software.

If Teensy is sending good LED data but your LEDs do something "bonkers", you may have 1 or more of a few common problems.

1: Ground connection between Teensy and the LED power supply is essential. If they don't have a good ground connection, the LEDs will hear pretty much random input.

2: Wrong LED config can matter. The most common problem is default RGB color with RGBW LEDs.

3: Today level shifting isn't usually needed, but it used to be a very common issue with older LEDs. It's still advisable for best reliability. Teensy's output signal is 0 to 3.3V. Most LEDs want 0 to 5V. Normally a 74AHCT125 or 74HCT245 chip is used to increase the signal. Do not use the slow bidirectional level shifters which use a mosfet transistor and 2 resistors. Those only make everything worse!

4: Power delivery for large LED projects is a huge challenge. If your LEDs work when you limit your data to low brightness, but then flicker or do weird things with high brightness, that's a pretty sure sign you have a power supply or power wiring issue. The ground connection is particularly important. If you have thin ground wires, or if you depend on long parts of the LED strip for ground connection, the voltage drop along the ground wire can corrupt your data which manifests as very bizarre problems where certain parts of the LEDs flicker while others seem to work fine.

After you have the hardware running well, one of the WS2812Serial examples shows how to use it from within FastLED. Once you have your hardware verified, if your problems turn out to be a FastLED software driver issue (it's rare but has come up a few times) you can probably use WS2812Serial from within FastLED to get highly reliable outputs.

But more likely, your "bonkers" LED behavior is probably one of those 4 common issues. My guess would be a missing ground connection. If you're stuck, showing us photos might be a good idea. This forum supports images paste-from-clipboard, so just copy your image with Ctrl-C in a graphics program and you can paste it right into a message. We're much better at helping with wiring issues when we can see photos!
 
Last edited:
One other complicated detail, as if all this wasn't enough, is there are many versions of FastLED floating around. Yet another reason to use WS2812Serial for the sake of hardware testing, and later return to the software side once your hardware is confirmed good.

Teensyduino comes with a copy of FastLED, which is the best one to use with Teensy. If you also installed FastLED using Arduino IDE's Library Manager or by manually copying files, Arduino IDE usually will notice and assume you meant for your installed copy to override the one that came with Teensyduino. If you have conflicting copies of any library, Arduino IDE will show a message when you have any compile error. Or if you turn on verbose output with File > Preferences (or Arduino IDE > Setting on MacOS) then it will print that library usage info every time.

If you see that message about duplicate copies of FastLED, even if the one you're using claims to have a new version number, you might be using an incompatible copy.
 
i had put this project away for a while and forgotten to link the power and board grounds together; the LEDs are no longer going bonkers.

i managed to get the WS1812 basic test to operate using all 438 pixels. when i attempt the FastLED sketch, the board seems to get hung in a reboot cycle (indicated by constant connect/disconnect notifications from the computer). FastLED isn't the library i'm intending to use, but i'd like to know what's wrong and understand it.
 
Repeated rebooting is probably from a memory fault and the default fault handler which reboots after 8 seconds.

You can use CrashReport to collect some info about what's going wrong.

If CrashReport doesn't work, or if it only raises more questions than answers (a pretty common outcome...), please give us a way to quickly and easily reproduce the problem. First check that the crash happens without LEDs connected. If so, post the complete code here. Even if it's as trivial as just changing 1 number from the code on msg #8, posting the exact code lets me or anyone else copy it into Arduino and upload to a Teensy 4.1 without any guesswork. Also please say which version of Arduino IDE and which version of Teensyduino you have installed, as those can sometimes make a difference.
 
Repeated rebooting is probably from a memory fault and the default fault handler which reboots after 8 seconds.

but why would the board work with other sketches and the sketch work with other boards if it was a memory fault?

i did the basic tests with Octo and WS2812 and everything works fine; even tried the WS2812 Cylon test which does the same thing as my code (which was the FastLED Cylon base function).

however, i'm going to put the 12v LEDs away for a bit since my power supply melted the connector (which may have contributed) and i assess if/how i'm going to continue with that supply.
 
Last edited:
a memory fault
That could be a program memory fault due to use/abuse by the code in that sketch - if that is what it is. Not a problem with the hardware memory itself.

Here is the usage of CrashReport as it appears in a sketch that happens to be open. It will only start with SerMon connected - and if a Crash was detected that information will be displayed and it will then stop after showing the information:
Code:
  while (!Serial)
    ;  // wait
  if (CrashReport) {
    Serial.print(CrashReport);
    Serial.print("Any Key to continue ...");
    delay(50);
    while (1) {
      if ( Serial.available() ) break;
      asm ("wfi");
    }
    while ( Serial.available() ) {
      Serial.print((char)Serial.read());
    }
  }
 
but why would the board work with other sketches and the sketch work with other boards if it was a memory fault?

Memory fault means a bug in the code which accesses memory in an illegal way, like regions without memory or a null pointer. Don't confuse with "faulty memory" would could mean the hardware is defective. Faults caught by CrashReport are about software.
 
That could be a program memory fault due to use/abuse by the code in that sketch - if that is what it is. Not a problem with the hardware memory itself.

i have cut out a lot of things that i didn't understand the purpose of in that sketch and added things from other sketches that i was attempting to grok, so it's likely that's a problem i caused.


Memory fault means a bug in the code which accesses memory in an illegal way, like regions without memory or a null pointer. Don't confuse with "faulty memory" would could mean the hardware is defective. Faults caught by CrashReport are about software.

that makes more sense.

i'm not totally enamored with this code. i only edited it, so i'm ok with starting over.
 
as i no longer seem to be having this issue, i'm considering the problem resolved. i appreciate the assistance; thank you.
 
Last edited:
no longer seem to be having this issue
That's great - if an 8 second auto restart occurs again the CrashReport may give a clue. That and the BreadCrumbs.

Code above may be generally useful as follows. It will sit until SerMon connects - might be better if pin(13) were flashed quickly in the while loop waiting for Serial to signal why it is doing nothing. But it has to wait for Serial (or any other stream you might send it to) or it will be cleared after the .print():
Code:
  if (CrashReport) {
      while (!Serial)
        ;  // wait
    Serial.print(CrashReport);
    Serial.print("Any Key to continue ...");
    delay(50);
    while (1) {
      if ( Serial.available() ) break;
      asm ("wfi");
    }
    while ( Serial.available() ) {
      Serial.print((char)Serial.read());
    }
  }
 
Back
Top