Boot loader blinks 9 times

I have an original Teensy 4.0 that I just pulled out of the bag and soldered wires to 3.3V, GND, and A0. When I first powered it up with USB, the boot loader LED came up solid and would not program. I then held the button for over 15 seconds. After that, the loader updated the boot loader. That ended in an error.

Now, when I plug it in, it enumerates OK, tycmd sees it, but if I push the button or try to upload from the IDE, then the boot loader LED immediately starts to blink at a 500ms rate for 9 flashes, pauses for about two seconds and repeats. It also disconnects and requires remove and insert of USB to enumerate.

I have a Teensy 4.1 and I repeated all of this with the same sketch. It programmed and ran the sketch.

What does the 9 flashes mean?
 
9 Flashes means the bootloader and startup are seeing an issue

From store/ic_mkl02_t4.html
Code:
9 Blinks = ARM JTAG DAP Init Error
The ARM JTAG DAP was detected (4 blinks) but could not be initialized. This error is rather unlikely!

Before starting the upload disable Serial connect in TyCommander.

Try the prior steps with TyComm Serial 'OFF' and see if it progresses properly.

Is anything connected to the T_4.0?
 
Thank you for that link. That gives me lots to study. I must be very lucky today to get this unlikely error;)

I originally have a resistor divider going from 3.3 to A0 to GND with the intent to read several push buttons with a single input. I have moved that the the 4.1 and that works. Now I have nothing on the 4.0.

I disabled "Enable serial connection by default" in TyCommander. Still the same result. Even just applying reset in TyCommander causes the 9 blinks immediately. Actually, that causes 7 blinks followed by 9 blinks.
 
Thank you for that link. That gives me lots to study. I must be very lucky today to get this unlikely error;)

I originally have a resistor divider going from 3.3 to A0 to GND with the intent to read several push buttons with a single input. I have moved that the the 4.1 and that works. Now I have nothing on the 4.0.

I disabled "Enable serial connection by default" in TyCommander. Still the same result. Even just applying reset in TyCommander causes the 9 blinks immediately. Actually, that causes 7 blinks followed by 9 blinks.

The default is okay - as long as the GUI 'Serial' is clicked disable at the time of Upload/button/Reset - for the purpose of the test.

Have you tried something like a SIMPLE blink sketch - From the IDE with TyComm closed?

Also In the Teensy.exe Loader program under 'Help' is 'Verbose info' - that will detail the events it sees from Teensy. Best to only have the one T_4.0 on - clear the log [it can push out a large log of stuff] - and then repeat the steps to see if anything shows.
 
Try the restore process, by holding the pushbutton for 15 seconds. Release the button when you see the quick flash on the red LED. The red LED should come on bright for about 30 seconds while it slowly wipes the flash and restores a known-good program. When finished, the red LED should turn off and the orange LED should blink slowly.

Does that work?
 
Have you tried something like a SIMPLE blink sketch - From the IDE with TyComm closed?

Yes, tried that.

Also In the Teensy.exe Loader program under 'Help' is 'Verbose info' - that will detail the events it sees from Teensy. Best to only have the one T_4.0 on - clear the log [it can push out a large log of stuff] - and then repeat the steps to see if anything shows.

Here is the log:
Code:
14:06:50.977 (ports 6): add device: subsys=usb, type=usb_device, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4
14:06:50.977 (ports 6):   devnode=/dev/bus/usb/003/094, subsystem=usb, ifacenum=-1
14:06:50.977 (ports 6): usb_add: /dev/bus/usb/003/094 (Teensy) Serial
14:06:50.985 (ports 6): add child:  subsys=usb, type=usb_interface, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4/3-3.4:1.0
14:06:50.985 (ports 6):   parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4
14:06:50.985 (ports 6):   model=36 (Teensy 4.0)
14:06:50.985 (ports 6): usb_add: /dev/bus/usb/003/094 (Teensy 4.0) Serial
14:06:50.985 (ports 6): add child:  subsys=usb, type=usb_interface, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4/3-3.4:1.1
14:06:50.985 (ports 6):   parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4
14:06:50.985 (ports 6): usb_add: /dev/bus/usb/003/094 (Teensy 4.0) Serial
14:06:50.987 (ports 6): unknown action: bind
14:06:50.990 (ports 6): add child:  subsys=tty, type=(null), location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4/3-3.4:1.0/tty/ttyACM0
14:06:50.990 (ports 6):   parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4
14:06:50.990 (ports 6):   devnode=/dev/ttyACM0, subsystem=tty, ifacenum=0
14:06:50.990 (ports 6): usb_add: /dev/ttyACM0 (Teensy 4.0) Serial
14:06:50.995 (ports 6): unknown action: bind
14:06:50.997 (ports 6): unknown action: bind
14:07:04.475 (post_compile 7): Begin, version=1.56
14:07:04.475 (loader): remote connection 14 opened
14:07:04.479 (post_compile 7): Sending command: comment: Teensyduino 1.56 - LINUX64 (teensy_post_compile)
14:07:04.479 (loader): remote cmd from 14: "comment: Teensyduino 1.56 - LINUX64 (teensy_post_compile)"
14:07:04.479 (loader): remote cmd from 14: "status"
14:07:04.479 (loader): file changed
14:07:04.483 (loader): File "/tmp/arduino_build_295463/Blink.ino.hex", 20480 bytes
14:07:04.483 (loader): File "Blink.ino.hex". 20480 bytes
14:07:04.483 (post_compile 7): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:04.483 (post_compile 7): Disconnect
14:07:04.493 (loader): remote connection 14 closed
14:07:04.603 (post_compile 8): Begin, version=1.56
14:07:04.603 (loader): remote connection 14 opened
14:07:04.603 (post_compile 8): Sending command: comment: Teensyduino 1.56 - LINUX64 (teensy_post_compile)
14:07:04.603 (loader): remote cmd from 14: "comment: Teensyduino 1.56 - LINUX64 (teensy_post_compile)"
14:07:04.603 (loader): remote cmd from 14: "status"
14:07:04.603 (post_compile 8): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:04.603 (post_compile 8): Disconnect
14:07:04.613 (post_compile 9): Running teensy_reboot: /home/tom/arduino-1.8.19/hardware/teensy/../tools/teensy_reboot
14:07:04.614 (loader): remote connection 14 closed
14:07:04.614 (loader): remote connection 14 opened
14:07:04.614 (loader): remote connection 14 closed
14:07:04.614 (reboot 10): Begin, version=1.56
14:07:04.614 (reboot 10): location = /dev/ttyACM0
14:07:04.614 (reboot 10): portlabel = /dev/ttyACM0
14:07:04.614 (reboot 10): Serial device /dev/ttyACM0 will be tried first
14:07:04.614 (reboot 10): portprotocol = serial
14:07:04.630 (loader): remote connection 14 opened
14:07:04.635 (reboot 10): add device: subsys=usb, type=usb_device, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4
14:07:04.635 (reboot 10):   devnode=/dev/bus/usb/003/094, subsystem=usb, ifacenum=-1
14:07:04.635 (reboot 10): add child:  subsys=usb, type=usb_interface, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4/3-3.4:1.0
14:07:04.635 (reboot 10):   parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4
14:07:04.635 (reboot 10):   model=36 (Teensy 4.0)
14:07:04.635 (reboot 10): add child:  subsys=tty, type=(null), location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4/3-3.4:1.0/tty/ttyACM0
14:07:04.635 (reboot 10):   parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4
14:07:04.635 (reboot 10):   devnode=/dev/ttyACM0, subsystem=tty, ifacenum=0
14:07:04.635 (reboot 10): add child:  subsys=usb, type=usb_interface, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4/3-3.4:1.1
14:07:04.635 (reboot 10):   parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4
14:07:04.643 (reboot 10): usb scan found 1 devices
14:07:04.643 (reboot 10): found Teensy Loader, version 1.56
14:07:04.643 (reboot 10): Sending command: show:arduino_attempt_reboot
14:07:04.679 (loader): remote cmd from 14: "show:arduino_attempt_reboot"
14:07:04.679 (loader): got request to show arduino rebooting message
14:07:04.681 (reboot 10): Sending command: comment: Teensyduino 1.56 - LINUX64 (teensy_reboot)
14:07:04.682 (loader): remote cmd from 14: "comment: Teensyduino 1.56 - LINUX64 (teensy_reboot)"
14:07:04.683 (loader): remote cmd from 14: "status"
14:07:04.683 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:04.683 (reboot 10): do_reset (serial) /dev/ttyACM0
14:07:04.684 (loader): remote cmd from 14: "status"
14:07:04.685 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:04.685 (reboot 10): status read, retry 0
14:07:04.785 (loader): remote cmd from 14: "status"
14:07:04.785 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:04.785 (reboot 10): status read, retry 1
14:07:04.886 (loader): remote cmd from 14: "status"
14:07:04.886 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:04.886 (reboot 10): status read, retry 2
14:07:04.903 (ports 6): unknown action: unbind
14:07:04.905 (ports 6): del child: location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4/3-3.4:1.1
14:07:04.907 (ports 6): del child: location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4/3-3.4:1.0/tty/ttyACM0
14:07:04.907 (ports 6):   devnode=/dev/bus/usb/003/094, subsystem=usb, ifacenum=-1
14:07:04.907 (ports 6): unknown action: unbind
14:07:04.909 (ports 6): del child: location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4/3-3.4:1.0
14:07:04.911 (ports 6): unknown action: unbind
14:07:04.914 (ports 6): del device: location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4
14:07:04.986 (loader): remote cmd from 14: "status"
14:07:04.986 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:04.986 (reboot 10): status read, retry 3
14:07:05.086 (loader): remote cmd from 14: "status"
14:07:05.086 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:05.086 (reboot 10): status read, retry 4
14:07:05.187 (loader): remote cmd from 14: "status"
14:07:05.187 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:05.187 (reboot 10): status read, retry 5
14:07:05.287 (loader): remote cmd from 14: "status"
14:07:05.287 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:05.287 (reboot 10): status read, retry 6
14:07:05.387 (loader): remote cmd from 14: "status"
14:07:05.387 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:05.387 (reboot 10): status read, retry 7
14:07:05.488 (loader): remote cmd from 14: "status"
14:07:05.488 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:05.488 (reboot 10): status read, retry 8
14:07:05.588 (loader): remote cmd from 14: "status"
14:07:05.588 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:05.588 (reboot 10): status read, retry 9
14:07:05.689 (loader): remote cmd from 14: "status"
14:07:05.689 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:05.689 (reboot 10): status read, retry 10
14:07:05.715 (ports 6): purge, name=/dev/ttyACM0 (Teensy 4.0) Serial, loc=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4, age=0.801
14:07:05.789 (loader): remote cmd from 14: "status"
14:07:05.789 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:05.789 (reboot 10): status read, retry 11
14:07:05.890 (loader): remote cmd from 14: "status"
14:07:05.890 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:05.890 (reboot 10): status read, retry 12
14:07:05.990 (loader): remote cmd from 14: "status"
14:07:05.990 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:05.990 (reboot 10): status read, retry 13
14:07:06.091 (loader): remote cmd from 14: "status"
14:07:06.091 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:06.091 (reboot 10): status read, retry 14
14:07:06.191 (loader): remote cmd from 14: "status"
14:07:06.191 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:06.191 (reboot 10): status read, retry 15
14:07:06.292 (loader): remote cmd from 14: "status"
14:07:06.292 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:06.292 (reboot 10): status read, retry 16
14:07:06.392 (loader): remote cmd from 14: "status"
14:07:06.392 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:06.392 (reboot 10): status read, retry 17
14:07:06.493 (loader): remote cmd from 14: "status"
14:07:06.493 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:06.493 (reboot 10): status read, retry 18
14:07:06.593 (loader): remote cmd from 14: "status"
14:07:06.593 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:06.593 (reboot 10): status read, retry 19
14:07:06.694 (loader): remote cmd from 14: "status"
14:07:06.694 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:06.694 (reboot 10): status read, retry 20
14:07:06.794 (loader): remote cmd from 14: "status"
14:07:06.795 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:06.795 (reboot 10): status read, retry 21
14:07:06.895 (loader): remote cmd from 14: "status"
14:07:06.895 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:06.895 (reboot 10): status read, retry 22
14:07:06.995 (loader): remote cmd from 14: "status"
14:07:06.996 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:06.996 (reboot 10): status read, retry 23
14:07:07.096 (loader): remote cmd from 14: "status"
14:07:07.096 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:07.096 (reboot 10): status read, retry 24
14:07:07.197 (loader): remote cmd from 14: "status"
14:07:07.197 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:07.197 (reboot 10): status read, retry 25
14:07:07.297 (loader): remote cmd from 14: "status"
14:07:07.297 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:07.297 (reboot 10): status read, retry 26
14:07:07.398 (loader): remote cmd from 14: "status"
14:07:07.398 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:07.398 (reboot 10): status read, retry 27
14:07:07.498 (loader): remote cmd from 14: "status"
14:07:07.498 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:07.498 (reboot 10): status read, retry 28
14:07:07.599 (loader): remote cmd from 14: "status"
14:07:07.599 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:07.599 (reboot 10): status read, retry 29
14:07:07.699 (loader): remote cmd from 14: "status"
14:07:07.699 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:07.699 (reboot 10): status read, retry 30
14:07:07.800 (loader): remote cmd from 14: "status"
14:07:07.800 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:07.800 (reboot 10): status read, retry 31
14:07:07.900 (loader): remote cmd from 14: "status"
14:07:07.900 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:07.900 (reboot 10): status read, retry 32
14:07:08.001 (loader): remote cmd from 14: "status"
14:07:08.001 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:08.001 (reboot 10): status read, retry 33
14:07:08.101 (loader): remote cmd from 14: "status"
14:07:08.101 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:08.101 (reboot 10): status read, retry 34
14:07:08.202 (loader): remote cmd from 14: "status"
14:07:08.202 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:08.202 (reboot 10): status read, retry 35
14:07:08.302 (loader): remote cmd from 14: "status"
14:07:08.302 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:08.302 (reboot 10): status read, retry 36
14:07:08.403 (loader): remote cmd from 14: "status"
14:07:08.403 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:08.403 (reboot 10): status read, retry 37
14:07:08.503 (loader): remote cmd from 14: "status"
14:07:08.503 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:08.503 (reboot 10): status read, retry 38
14:07:08.603 (loader): remote cmd from 14: "status"
14:07:08.604 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:08.604 (reboot 10): status read, retry 39
14:07:08.704 (loader): remote cmd from 14: "status"
14:07:08.704 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:08.704 (reboot 10): status read, retry 40
14:07:08.804 (loader): remote cmd from 14: "status"
14:07:08.805 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:08.805 (reboot 10): status read, retry 41
14:07:08.905 (loader): remote cmd from 14: "status"
14:07:08.905 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:08.905 (reboot 10): status read, retry 42
14:07:09.005 (loader): remote cmd from 14: "status"
14:07:09.006 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:09.006 (reboot 10): status read, retry 43
14:07:09.106 (loader): remote cmd from 14: "status"
14:07:09.106 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:09.106 (reboot 10): status read, retry 44
14:07:09.207 (loader): remote cmd from 14: "status"
14:07:09.207 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:09.207 (reboot 10): status read, retry 45
14:07:09.307 (loader): remote cmd from 14: "status"
14:07:09.307 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:09.307 (reboot 10): status read, retry 46
14:07:09.408 (loader): remote cmd from 14: "status"
14:07:09.408 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:09.408 (reboot 10): status read, retry 47
14:07:09.508 (loader): remote cmd from 14: "status"
14:07:09.508 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:09.508 (reboot 10): status read, retry 48
14:07:09.608 (loader): remote cmd from 14: "status"
14:07:09.609 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:09.609 (reboot 10): status read, retry 49
14:07:09.709 (loader): remote cmd from 14: "status"
14:07:09.709 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:09.709 (reboot 10): status read, retry 50
14:07:09.809 (loader): remote cmd from 14: "status"
14:07:09.809 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:09.809 (reboot 10): status read, retry 51
14:07:09.910 (loader): remote cmd from 14: "status"
14:07:09.910 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:09.910 (reboot 10): status read, retry 52
14:07:10.010 (loader): remote cmd from 14: "status"
14:07:10.010 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:10.010 (reboot 10): status read, retry 53
14:07:10.110 (loader): remote cmd from 14: "status"
14:07:10.111 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:10.111 (reboot 10): status read, retry 54
14:07:10.211 (loader): remote cmd from 14: "status"
14:07:10.211 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:10.211 (reboot 10): status read, retry 55
14:07:10.311 (loader): remote cmd from 14: "status"
14:07:10.312 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:10.312 (reboot 10): status read, retry 56
14:07:10.412 (loader): remote cmd from 14: "status"
14:07:10.412 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:10.412 (reboot 10): status read, retry 57
14:07:10.512 (loader): remote cmd from 14: "status"
14:07:10.512 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:10.512 (reboot 10): status read, retry 58
14:07:10.613 (loader): remote cmd from 14: "status"
14:07:10.613 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:10.613 (reboot 10): status read, retry 59
14:07:10.713 (loader): remote cmd from 14: "status"
14:07:10.713 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:10.713 (reboot 10): status read, retry 60
14:07:10.813 (loader): remote cmd from 14: "status"
14:07:10.814 (reboot 10): Status: 1, 1, 0, 0, 0, 0, /tmp/arduino_build_295463/, Blink.ino.hex
14:07:10.814 (reboot 10): status read, retry 61
14:07:10.914 (reboot 10): Teensy did not respond to a USB-based request to automatically reboot.
14:07:10.915 (loader): remote connection 14 closed
14:07:14.366 (loader): Verbose Info event
 
Try the restore process, by holding the pushbutton for 15 seconds. Release the button when you see the quick flash on the red LED. The red LED should come on bright for about 30 seconds while it slowly wipes the flash and restores a known-good program. When finished, the red LED should turn off and the orange LED should blink slowly.

Does that work?

If I press the button, it immediately starts blinking and remains blinking after the 15 or more seconds holding it down. If I press the button and then plug in to USB, it immediately blinks 7 times, then blinks 9 times.
 
I'm not sure what happened, but it works now. I will try to describe for reference.

I cleared the log, then plugged in the teensy. The log showed this:

Code:
14:32:17.248 (ports 6): unknown action: bind
14:32:17.249 (ports 6): unknown action: bind
14:32:17.253 (ports 6): unknown action: bind
14:32:17.297 (loader): action add: /dev/hidraw6
14:32:17.297 (loader): USB add /dev/hidraw6, vid=1FC9, pid=0135, ver=0101, serial=0000:00:14.0, location=usb3/3-3/3-3.4/
14:32:17.355 (loader): opening /dev/hidraw6, usage: 0027: NXP IMXRT1062 ROM
14:32:17.355 (loader): Device came online, code_size = 100
14:32:17.355 (loader): Board is: NXP IMXRT1062 ROM
14:32:17.355 (loader): begin operation
14:32:17.358 (loader): File "/tmp/arduino_build_295463/Blink.ino.hex", 20480 bytes
14:32:17.358 (loader): File "Blink.ino.hex". 20480 bytes
14:32:17.359 (loader): set background IMG_ONLINE
14:32:17.369 (loader): HAB open mode, bootcfg=80018
14:32:17.369 (loader): Opps, NXP ROM in open mode, but we do not yet have code for this case :(
14:32:17.369 (loader): start ignoring /dev/hidraw6
14:32:17.369 (loader): end operation, total time = 0.014 seconds
14:32:17.370 (loader): redraw timer set, image 79 to show for 3000 ms
14:32:20.370 (loader): redraw, image 9
I then pressed the button and it programmed! I almost fell out of my chair.
 
Well, it worked once. When I changed blink and tried to program... back to 9 blinks from boot loader.

Do you think I should re-flow the solder? What temp do you recommend? I have regulated hot air available.
 
@TommyBurger: Good job posting the Verbose logs - that may show something to Paul.

Safe to assume the same cable in use now is the one seen to work on the T_4.1 that was mentioned?

Even so try another 'expected good' cable before doing anything drastic. And make sure TyCommander is closed.

I see from the LOG that Linux is in use - not Windows - so I can't say if there might be some other conflict in use?

I was testing PJRC's beta's as these were in development from T_4.0 to the latest Beta of the V1.07 bootloader and sometimes TyCommander it seemed would grab the USB link during programming steps and that left Teensy Loader unable to connect. If there is any other MODEM code on the Linux box it might be interfering - not sure if th eVerbose Log messages indicate that or other loss causing the retries in the first Log.

With Teensy Loader closed - or with "Auto" disabled - pressing the Teensy Button should result in a SOLID RED LED when it is connected to a Host with a good cable.

Once that is done don't hesitate to try the 15sec Restore again - releasing Button when the Red LED Flashes and watching it stay red as noted some 30 seconds. Then it should do a 1 sec blink, but not be on USB.
> Then if you can open the Arduino IDE and upload a Blink.ino it will require a button press the first time.
> If that works maybe edit the Blink to print millis() or something each blink second and open the IDE SerMon ( Teensy Ports version )
 
"Opps, NXP ROM in open mode" might indicate a problem with the wiring to the flash chip. It can also happen on perfectly good hardware if the flash is written with invalid code which can't boot, but normally that doesn't tend to happen if you create the files with Arduino or other tools because Teensy Loader checks if the elf file is correct for the hardware and won't try to upload.
 
I tried an alternate USB cable. Also it did work on my Teensy 4.1. I am not in a hurry, so I can leave this available for forensics. If we run out of ideas, then I will reflow the board as last resort. I have another 4.0 outside controlling our Christmas lights that I will pull down tomorrow. I bought them at the same time, when the 4.0 was first available, but just this month pulled the second one out for a new project.

It is new years day somewhere, so I will quit for the day. Thank you both for your support. Happy New Year!
 
"Opps, NXP ROM in open mode" might indicate a problem with the wiring to the flash chip. It can also happen on perfectly good hardware if the flash is written with invalid code which can't boot, but normally that doesn't tend to happen if you create the files with Arduino or other tools because Teensy Loader checks if the elf file is correct for the hardware and won't try to upload.

Sounding more like a bad solder joint, possibly caused by my soldering to 3.3 or GND. I do not see anything with my most powerful magnifier. Tomorrow, I will get out my microscope and try to see.
 
I found a T_4.0: Serial # 6053000 showing in TyCommander 17:32:56.194 (loader): Board is: Teensy 4.0 (IMXRT1062), version 1.05 - previously used and pinned.
Uploaded Blink.ino with IDE 1.8.19 and TD 1.56 :: 17:36:38.657 (loader): Bootloader upgrade: 1.05 -> 1.07
Code:
17:36:42.976 (loader): Bootloader update finished, 2.9 seconds
17:36:42.980 (loader): Board is: Teensy 4.0 (IMXRT1062), version 1.07

So all seems well with bootloader upgrade and programming using a good cable and a working T_4.0 here in Windows.

The Verbose log in post #6 shows the 'Retry' process that happens when the Serial monitor holds the port Teensy Loader needs for upload. Saw that here when IDE SerMon was opened after IDE Upload was started and underway building:
Code:
...
17:55:28.115 (reboot 15): status read, retry 45
17:55:28.218 (loader): remote cmd from 1524: "status"
17:55:28.225 (reboot 15): Status: 1, 1, 0, 3, 1, 0, R:\Temp\arduino_build_318880\, Blink.ino.hex
17:55:28.225 (reboot 15): status read, retry 46
17:55:28.326 (loader): remote cmd from 1524: "status"
17:55:28.332 (reboot 15): Status: 1, 1, 0, 3, 1, 0, R:\Temp\arduino_build_318880\, Blink.ino.hex
...
 
Hello, sorry to reopen this topic after so long.
I'm having the same issues as Tommyburger. I tried the 15 second hold press recovery process to load a correct program. It completes correctly and I have the blinking orange LED. If I cycle power, this program runs without any issue, however, if I program the blink example from a PC after this it locks up after the reboot and does not run (I have tried different USB configurations without success). When I cycle the power in this stage the red LED blinks 9 times.
Is this caused by SW? Should I try to reflow the board? Just the flash/programmer?
Any help is more than welcome!
Thanks!
 
When you say "I program the blink example from a PC", are you flashing a prebuilt (known working) blink HEX file or are you compiling it yourself?
 
I'm compiling it with a PC. I've made the change to other teensy board and I'm having the same issue. I've tried both with platformio and teensyduino, but have the same resutls.
 
Last edited:
Hello, sorry to reopen this topic after so long.
I'm having the same issues as Tommyburger. I tried the 15 second hold press recovery process to load a correct program. It completes correctly and I have the blinking orange LED. If I cycle power, this program runs without any issue, however, if I program the blink example from a PC after this it locks up after the reboot and does not run (I have tried different USB configurations without success). When I cycle the power in this stage the red LED blinks 9 times.
Is this caused by SW? Should I try to reflow the board? Just the flash/programmer?
Any help is more than welcome!
Thanks!
Can we see your code please.
 
Can we see your code please.
Standard Blink example:
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.

This example code is in the public domain.
*/

// Pin 13 has an LED connected on most Arduino boards.
// Pin 11 has the LED on Teensy 2.0
// Pin 6 has the LED on Teensy++ 2.0
// Pin 13 has the LED on Teensy 3.0
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
 
I have an interesting post-script to this Teensy 4.x boot loader 9-blinks symptom:

I'm using bog-standard Arduino (2.3.3) + Teensyduino. Brand new Teensy 4.1, no pins soldered, nothing connected, just bare on my desk.

Been compiling & uploading the beginnings of a large sketch over the past week, mostly consts & variables & typedefs, and the only actively running code currently is the superloop blinking the onboard LED once/second, no issues whatsoever.

Then today I added the I2C Wire. & Wire1. setup lines, per the attached screenshot, nothing fancy.

But on first upload I got the 9-blinks after programming!

Found this thread, nothing obvious applied to me (I had to google what TyCommander was).

Wondered if me not having any pull-ups on the i2c lines was causing an issue, so I added four 4k7 pullups. Still no joy.

ANY call to even just one of the Wire. (WiresetSDA/SCL, or Wire.begin, or Wire.setClock) library was causing the 9-blinks.

Dunno what made me check, but in Arduino's Tools > Optimise I'd selected "Debug" a week ago. Changed it to "Fast", and now the 9-blinks problem is gone.

FYI.
 

Attachments

  • Screenshot 2024-10-31 at 18.41.39.png
    Screenshot 2024-10-31 at 18.41.39.png
    825.7 KB · Views: 14
Were there any errors or warnings with the Debug build in Verbose mode?

@ALL - was there some recent build note regarding DEBUG - not seeing it in the beta 1.60 threads ...

Nope, zero compile errors for 'Debug' & 'Fast/er/est' (with Verbose on for compile & upload, and All errors).
 
Were there any errors or warnings with the Debug build in Verbose mode?

@ALL - was there some recent build note regarding DEBUG - not seeing it in the beta 1.60 threads ...
You might be thinking of a recent fix for USBHost that had some functions not marked as pure virtual, which caused build errors when targetting Debug.

The problem with the Wire library sounds like indeterminate static initialization order which existed for a while when the compiler (part of Teensyduino) was upgraded and some fixes need to be added. Latest Teensyduino most likely will not have the same problem.
 
I have the same 9 blink issue in a MicroMod after loading a program. Tried to make the memory wipeout holding the program button (on the carrier board, the module doesn't have one), the LED gets on steady for a while and then gets back to the 9 blink again. Tried that with a different module and the wipeout is done correctly. It doesn't get recognized by the computer. Any thoughs?
 
Back
Top