Inconsistent Behavior in FlasherX on Teensy 4.1 – Random Bootloader Failure After Flash

SpicyTech404

New member
Hi everyone,
I've been testing the FlasherX tool on a Teensy 4.1 by flashing a basic blink sketch from a .hex file to evaluate how well it works. The flashing process itself completes successfully — the orange LED starts blinking, as expected from the standard blink example.

Overview:​

FlasherX, as you might know, allows you to send hex lines from a .hex file either via serial or from the SD card. The flashing process completes successfully — I can confirm this because the orange LED starts blinking, just as expected with the basic blink example.

The Problem:​

After flashing, everything seems fine, but once I either unplug the Teensy or press the Program button, the issue starts:
  • The bootloader appears to fail to find the start sequence of the flashed program.
  • If I plug the USB back in, sometimes the blink sketch suddenly starts working again.
  • But other times, I get 9 red blinks from the LED near the USB port, which indicates a bootloader-related error.
  • This behavior is completely random — sometimes the board boots fine, other times it doesn’t.

What I’ve Tried (no improvement):​

  • Flashing larger .hex files
  • Powering the board without USB, using a dedicated power supply
  • Removing the Teensy from its custom PCB and testing it standalone

Additional Notes:​

I'm using the original source code from Joepasquariello FlasherX GitHub repo, without any modifications.

Has anyone experienced something similar or have insights into what might cause this inconsistent boot behavior after flashing? Any ideas are welcome!
 
@SpicyTech404: Just for completeness, can you post the source for the .hex that you are sending via FlasherX (looking for the .ino file, not the .hex file) ??

Mark J Culross
KD5RXT
 
I don't understand what you're doing. FlasherX will not write your basic blink program to flash because it does not contain a target ID.
 
Back
Top