Teensyduino 1.42 Beta #2

Status
Not open for further replies.
That certainly would add to confusion and not help keep things clear watching events pass by.

My COM10 T_3.6 teensy_sermon is working and connecting well - after Button or USB RePlug. Seems NOT to be seeing this (!Serial ) going false?

Code:
  #define cout          Serial
  while (!Serial && (millis() < [B][U]1000[/U][/B]) ) { }
  coutD.print("\n" __FILE__ " " __DATE__ " " __TIME__ " @ms=");
  coutD.println( millis());
  delay(4000);

Here I have 1000 - but I can make that 410, 2000 or 4000 and it stays in the while until the millis() times out? Then the .print() shows up - but millis() is always the same as the limit value?

If I comment the while() line it connects and prints at 400!

As noted T_3.6 was taking IDE Upload, the T_3.5 was not. Now the T_3.5 code is stable (and connected) so I'm back to the T_3.6 and it always requires the Button. Message as above.

If I button press when TLoader shows this message: "Arduino is attempting to put Teensy into programming mode"
The IDE text shown is this - after a successful programming:
Unable to open COM10 for reboot request
Windows Error Info: The system cannot find the file specified.
more ideas... https://forum.pjrc.com/threads/40632?p=126667&viewfull=1#post126667
 
Here are fixes for Macintosh High Sierra. To install, extract the 3 utils from this zip. Control-click Arduino and "Show Package Contents", then put them into Contents/Java/hardware/tools. You'll need to restart Arduino to get it to run the new teensy_ports.

I'm happy to confirm that this seems to solve the previous upload problems to 100% (besides the 32bit performance warning :( ) on High Sierra beta 10.13.4 (17E160e)
 
Compiling again on T_3.6 and compile failed - Doing Verify build because I always need to push Button - TLoader not ready?

REASON FOUND :: I find a pop-up buried behind other windows: "Unable to program because file is not readable".
>> Seems I pushed the button at the wrong time - Verify does not give a good 'End of Compile' signal? I watched the Yellow 'Checkmark' icon to go white ... too fast?

Note: This "Unable find Teensy Loader" was not COLORED to stand out - it was white.
// ...
Opening Teensy Loader...

Unable find Teensy Loader. (p) Is the Teensy Loader application running?

Is a firewall (eg, ZoneAlarm) blocking localhost communication?

Using library MPU9250 in folder: t:\tcode\libraries\MPU9250 (legacy)
Using library SPI at version 1.0 in folder: T:\arduino_1.8.5_142\hardware\teensy\avr\libraries\SPI
Using library i2c_t3 in folder: T:\arduino_1.8.5_142\hardware\teensy\avr\libraries\i2c_t3 (legacy)
Using library EEPROM at version 2.0 in folder: T:\arduino_1.8.5_142\hardware\teensy\avr\libraries\EEPROM
Using library Eigen in folder: t:\tcode\libraries\Eigen (legacy)
Using library UBLOX in folder: t:\tcode\libraries\UBLOX (legacy)
Using library SPI_MSTransfer in folder: t:\tcode\libraries\SPI_MSTransfer (legacy)
quitexit status 1
Error compiling for board Teensy 3.6.
 
REASON FOUND :: I find a pop-up buried behind other windows: "Unable to program because file is not readable".

I hit this same problem while testing on Macintosh, and added it to my known bug list. The Help>About dialog does it too. Both of those need to be made non-modal.

On the Windows side, I went with detecting repeated identical timestamps and incrementing the microsecond count, and timeBeginPeriod. Right now I'm testing on Windows 7. Will reimage my test machine to Windows 10 soon, and probably put in code to use GetSystemTimePreciseAsFileTime if it's available. Hopefully over time Windows 7 will fade away like XP mostly has. I'm still debating whether to keep using timeBeginPeriod for 1ms precision on Windows 7 and lower.

Also going to try some of the excessive logging of Teensy Loader status messages.

With these fixes, I think it'll be time to roll everything up into "beta3".
 
Looking forward to Beta 3 - awkward pushing the button.

Some folks still afraid of Win 10 - mostly cosmetic issues for casual user but 'they heard' something ... but they don't know the difference. Yesterday moved somebody to her new computer she had refused to use because it had Win 10 ... side note .... her old computer was running windows 10 too . . . :?

Win 10 is a good upgrade to Win 7 - not the Vista like Win 8 experience.

BTW: I wiped or reset three Windows machines last month, NEW HDD {old HDD too bad to even clone} on two and the other just wiped. Using USB disk of current Win 10 - it installs and licenses the equivalent version of Win 10 (assuming if it was running Win 7 or Win 8). I always wondered how that would work out. Two Dell's and a Lenovo - both booted up and showed 'Activated' on first connection when "license #" was 'skipped' in setup. The Dells were both 'home' and the fancy Lenovo accepted PRO. { I did PRO on the one DELL and that failed as it knew it wasn't paid for }
 
@Defragster - The other thing I keep noticing in your logs is an absence of any WM_DEVICECHANGE events. It's supposed to look like this:

capture.png

Are you ever seeing these?

Maybe running as admin vs non-admin makes a difference? EDIT: tried just now, still getting WM_DEVICECHANGE on Windows 7 when running at a non-admin user.
 
Last edited:
WM_DEVICECHANGE is supposed to show in both verbose output and the Teensy Loader verbose info log.

You should see these every time Teensy reboots.
 
Started clean - tried to put code to fix on T_3.6 then on T_3.5. Had to Button Push to both to program.

Let me know if this shows anything new . . .

Here is TLoader Verbose file: View attachment td142_both.txt

<edit>: Here is "teensy_ports -v" extended set of uploads by Button to both units: View attachment td142b2Extended.txt


Started Teensy_ports -v from admin CMD:
Code:
T:\>cd arduino_1.8.5_142

T:\arduino_1.8.5_142>teensy_ports.exe -v
teensy_ports, verbose mode
begin
LoadLibrary cfgmgr32 ok
LoadLibrary ntdll ok
LoadLibrary iphlpapi ok
hWnd = 459434
GetTcpTable success, 58 rows
not already running
socket created
bound to port 28542
   00000002, class=Ports, addr=1
      00000008, class=USB, addr=3
         00000009, class=USB, addr=0
            0000000A, class=USB, addr=140000
               0000000B, class=System, addr=0
                  0000000C, class=System, R=37
                     0000000D, class=Computer, R=37
                        0000000E, R=37, R=37
found_usb_device, id=\\?\usb#vid_16c0&pid_0483#2114150#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
found_usb_device, loc=usb:0/140000/0/3/1    Port_#0001.Hub_#0003
found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0200
found_usb_device, devinst=00000002
add: loc=usb:0/140000/0/3/1, class=Ports, vid=16C0, pid=0483, ver=0200, serial=2114150, dev=\\?\usb#vid_16c0&pid_0483#2114150#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
      00000002, class=Ports, portname=COM12, id=USB\VID_16C0&PID_0483\2114150
  comport_from_devinst_list attempt
  found Ports in classguid_list at index=0
  port COM12 found from devnode

   00000007, class=Ports, addr=1
      00000009, class=USB, addr=0
         0000000A, class=USB, addr=140000
            0000000B, class=System, addr=0
               0000000C, class=System, R=37
                  0000000D, class=Computer, R=37
                     0000000E, R=37, R=37
found_usb_device, id=\\?\usb#vid_16c0&pid_0483#2273070#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
found_usb_device, loc=usb:0/140000/0/1    Port_#0001.Hub_#0001
found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0200
found_usb_device, devinst=00000007
add: loc=usb:0/140000/0/1, class=Ports, vid=16C0, pid=0483, ver=0200, serial=2273070, dev=\\?\usb#vid_16c0&pid_0483#2273070#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
      00000007, class=Ports, portname=COM10, id=USB\VID_16C0&PID_0483\2273070
  comport_from_devinst_list attempt
  found Ports in classguid_list at index=0
  port COM10 found from devnode

found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
incoming connection, port 52790
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
update_usb_device, devinst list change
remove: loc=usb:0/140000/0/1
usb_remove: usb:0/140000/0/1
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
update_usb_device, devinst list change
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
WM_DEVICECHANGE DBT_DEVICEARRIVAL
   0000001D, class=HID, addr=1
      00000009, class=USB, addr=0
         0000000A, class=USB, addr=140000
            0000000B, class=System, addr=0
               0000000C, class=System, R=37
                  0000000D, class=Computer, R=37
                     0000000E, R=37, R=37
found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000377eb#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
found_usb_device, loc=usb:0/140000/0/1    Port_#0001.Hub_#0001
found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0103
found_usb_device, devinst=0000001d
add: loc=usb:0/140000/0/1, class=HID, vid=16C0, pid=0478, ver=0103, serial=000377eb, dev=\\?\usb#vid_16c0&pid_0478#000377eb#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
      0000001D, class=HID, id=USB\VID_16C0&PID_0478\000377EB
          0000001E, class=HID, id=HID\VID_16C0&PID_0478\6&258B1F3&0&0000
hiddev_from_devinst_list: iface=0
  index=0
  index=1
  index=2
  index=3
  index=4
  index=5
  index=6
  index=7
  index=8
  index=9
  index=10
  index=11
  index=12
  index=13
  index=14
  index=15

update_usb_device, devinst list change
hid, found devinst=0000001E
hid, path=\\?\hid#vid_16c0&pid_0478#6&258b1f3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
hid,  opened handle
 devinst=0000001E, location=usb:0/140000/0/1
 vid=16C0, pid=0478, ver=0103, usepage=FF9C, use=0022
 devpath=\\?\hid#vid_16c0&pid_0478#6&258b1f3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  \\?\hid#vid_16c0&pid_0478#6&258b1f3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (Teensy 3.6) Bootloader
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
update_usb_device, devinst list change
hid, found devinst=0000001E
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  \\?\hid#vid_16c0&pid_0478#6&258b1f3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (Teensy 3.6) Bootloader
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
update_usb_device, devinst list change
hid, found devinst=0000001E
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  \\?\hid#vid_16c0&pid_0478#6&258b1f3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (Teensy 3.6) Bootloader
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
update_usb_device, devinst list change
remove: loc=usb:0/140000/0/1
usb_remove: usb:0/140000/0/1
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
   00000007, class=Ports, addr=1
      00000009, class=USB, addr=0
         0000000A, class=USB, addr=140000
            0000000B, class=System, addr=0
               0000000C, class=System, R=37
                  0000000D, class=Computer, R=37
                     0000000E, R=37, R=37
found_usb_device, id=\\?\usb#vid_16c0&pid_0483#2273070#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
found_usb_device, loc=usb:0/140000/0/1    Port_#0001.Hub_#0001
found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0200
found_usb_device, devinst=00000007
add: loc=usb:0/140000/0/1, class=Ports, vid=16C0, pid=0483, ver=0200, serial=2273070, dev=\\?\usb#vid_16c0&pid_0483#2273070#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
      00000007, class=Ports, portname=COM10, id=USB\VID_16C0&PID_0483\2273070
  comport_from_devinst_list attempt
  found Ports in classguid_list at index=0
  port COM10 found from devnode

found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
WM_DEVICECHANGE DBT_DEVICEARRIVAL
WM_DEVICECHANGE DBT_DEVICEARRIVAL
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
usb_add: usb:0/140000/0/3/1  COM12 (Teensy) Serial
WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
update_usb_device, devinst list change
remove: loc=usb:0/140000/0/3/1
usb_remove: usb:0/140000/0/3/1
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
update_usb_device, devinst list change
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVICEARRIVAL
   0000001F, class=HID, addr=1
      00000008, class=USB, addr=3
         00000009, class=USB, addr=0
            0000000A, class=USB, addr=140000
               0000000B, class=System, addr=0
                  0000000C, class=System, R=37
                     0000000D, class=Computer, R=37
                        0000000E, R=37, R=37
found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000339d7#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
found_usb_device, loc=usb:0/140000/0/3/1    Port_#0001.Hub_#0003
found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0103
found_usb_device, devinst=0000001f
add: loc=usb:0/140000/0/3/1, class=HID, vid=16C0, pid=0478, ver=0103, serial=000339d7, dev=\\?\usb#vid_16c0&pid_0478#000339d7#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
      0000001F, class=HID, id=USB\VID_16C0&PID_0478\000339D7
          00000020, class=HID, id=HID\VID_16C0&PID_0478\6&3171F9&0&0000
hiddev_from_devinst_list: iface=0
  index=0
  index=1
  index=2
  index=3
  index=4
  index=5
  index=6
  index=7
  index=8
  index=9
  index=10
  index=11
  index=12
  index=13
  index=14
  index=15

update_usb_device, devinst list change
hid, found devinst=00000020
hid, path=\\?\hid#vid_16c0&pid_0478#6&3171f9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
hid,  opened handle
 devinst=00000020, location=usb:0/140000/0/3/1
 vid=16C0, pid=0478, ver=0103, usepage=FF9C, use=001F
 devpath=\\?\hid#vid_16c0&pid_0478#6&3171f9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/3/1  \\?\hid#vid_16c0&pid_0478#6&3171f9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (Teensy 3.5) Bootloader
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
update_usb_device, devinst list change
hid, found devinst=00000020
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/3/1  \\?\hid#vid_16c0&pid_0478#6&3171f9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (Teensy 3.5) Bootloader
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
update_usb_device, devinst list change
hid, found devinst=00000020
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/3/1  \\?\hid#vid_16c0&pid_0478#6&3171f9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (Teensy 3.5) Bootloader
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
update_usb_device, devinst list change
remove: loc=usb:0/140000/0/3/1
usb_remove: usb:0/140000/0/3/1
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVICEARRIVAL
   00000002, class=Ports, addr=1
      00000008, class=USB, addr=3
         00000009, class=USB, addr=0
            0000000A, class=USB, addr=140000
               0000000B, class=System, addr=0
                  0000000C, class=System, R=37
                     0000000D, class=Computer, R=37
                        0000000E, R=37, R=37
found_usb_device, id=\\?\usb#vid_16c0&pid_0483#2114150#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
found_usb_device, loc=usb:0/140000/0/3/1    Port_#0001.Hub_#0003
found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0200
found_usb_device, devinst=00000002
add: loc=usb:0/140000/0/3/1, class=Ports, vid=16C0, pid=0483, ver=0200, serial=2114150, dev=\\?\usb#vid_16c0&pid_0483#2114150#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
      00000002, class=Ports, portname=COM12, id=USB\VID_16C0&PID_0483\2114150
  comport_from_devinst_list attempt
  found Ports in classguid_list at index=0
  port COM12 found from devnode

update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy 3.5) Serial
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVICEARRIVAL
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy 3.5) Serial
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy 3.5) Serial
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy 3.5) Serial
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
read 5 bytes on 456: "list
"
got command: "list"
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy 3.5) Serial
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
update_usb_device, devinst list change
remove: loc=usb:0/140000/0/3/1
usb_remove: usb:0/140000/0/3/1
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVICEARRIVAL
   0000001F, class=HID, addr=1
      00000008, class=USB, addr=3
         00000009, class=USB, addr=0
            0000000A, class=USB, addr=140000
               0000000B, class=System, addr=0
                  0000000C, class=System, R=37
                     0000000D, class=Computer, R=37
                        0000000E, R=37, R=37
found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000339d7#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
found_usb_device, loc=usb:0/140000/0/3/1    Port_#0001.Hub_#0003
found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0103
found_usb_device, devinst=0000001f
add: loc=usb:0/140000/0/3/1, class=HID, vid=16C0, pid=0478, ver=0103, serial=000339d7, dev=\\?\usb#vid_16c0&pid_0478#000339d7#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
      0000001F, class=HID, id=USB\VID_16C0&PID_0478\000339D7
          00000020, class=HID, id=HID\VID_16C0&PID_0478\6&3171F9&0&0000
hiddev_from_devinst_list: iface=0
  index=0
  index=1
  index=2
  index=3
  index=4
  index=5
  index=6
  index=7
  index=8
  index=9
  index=10
  index=11
  index=12
  index=13
  index=14
  index=15

update_usb_device, devinst list change
hid, found devinst=00000020
hid, path=\\?\hid#vid_16c0&pid_0478#6&3171f9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
hid,  opened handle
 devinst=00000020, location=usb:0/140000/0/3/1
 vid=16C0, pid=0478, ver=0103, usepage=FF9C, use=001F
 devpath=\\?\hid#vid_16c0&pid_0478#6&3171f9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/3/1  \\?\hid#vid_16c0&pid_0478#6&3171f9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (Teensy 3.5) Bootloader
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
update_usb_device, devinst list change
hid, found devinst=00000020
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/3/1  \\?\hid#vid_16c0&pid_0478#6&3171f9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (Teensy 3.5) Bootloader
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
update_usb_device, devinst list change
hid, found devinst=00000020
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/3/1  \\?\hid#vid_16c0&pid_0478#6&3171f9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (Teensy 3.5) Bootloader
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
update_usb_device, devinst list change
remove: loc=usb:0/140000/0/3/1
usb_remove: usb:0/140000/0/3/1
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
found something COM port, devinst=00000007
usb_add: usb:0/140000/0/1  COM10 (Teensy 3.6) Serial
WM_DEVICECHANGE DBT_DEVICEARRIVAL
   00000002, class=Ports, addr=1
      00000008, class=USB, addr=3
         00000009, class=USB, addr=0
            0000000A, class=USB, addr=140000
               0000000B, class=System, addr=0
                  0000000C, class=System, R=37
                     0000000D, class=Computer, R=37
                        0000000E, R=37, R=37
found_usb_device, id=\\?\usb#vid_16c0&pid_0483#2114150#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
found_usb_device, loc=usb:0/140000/0/3/1    Port_#0001.Hub_#0003
found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0200
found_usb_device, devinst=00000002
add: loc=usb:0/140000/0/3/1, class=Ports, vid=16C0, pid=0483, ver=0200, serial=2114150, dev=\\?\usb#vid_16c0&pid_0483#2114150#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
      00000002, class=Ports, portname=COM12, id=USB\VID_16C0&PID_0483\2114150
  comport_from_devinst_list attempt
  found Ports in classguid_list at index=0
  port COM12 found from devnode

found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy 3.5) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy 3.5) Serial
WM_DEVICECHANGE DBT_DEVICEARRIVAL
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy 3.5) Serial
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1  COM12 (Teensy 3.5) Serial


This is the start of a T_sermon for COM12 T_3.5:
Code:
WM_DEVICECHANGE DBT_DEVICEARRIVAL
   00000002, class=Ports, addr=1
      00000008, class=USB, addr=3
         00000009, class=USB, addr=0
            0000000A, class=USB, addr=140000
               0000000B, class=System, addr=0
                  0000000C, class=System, R=37
                     0000000D, class=Computer, R=37
                        0000000E, R=37, R=37
found_usb_device, id=\\?\usb#vid_16c0&pid_0483#2114150#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
found_usb_device, loc=usb:0/140000/0/3/1    Port_#0001.Hub_#0003
found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0200
found_usb_device, devinst=00000002
add: loc=usb:0/140000/0/3/1, class=Ports, vid=16C0, pid=0483, ver=0200, serial=211, dev=\\?\usb#vid_16c0&pid_0483#2114150#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
      00000002, class=Ports, portname=COM12, id=USB\VID_16C0&PID_0483\2114150
  comport_from_devinst_list attempt
  found Ports in classguid_list at index=0
  port COM12 found from devnode

update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1
translate "COM12" -> "\\.\COM12"
usb_add: usb:0/140000/0/1
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
  portname=COM12
usb_add: usb:0/140000/0/3/1
usb_add: usb:0/140000/0/1
WM_DEVICECHANGE DBT_DEVICEARRIVAL
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1
usb_add: usb:0/140000/0/1
WM_DEVICECHANGE DBT_DEVNODES_CHANGED
update_usb_device, devinst list change
update_usb_device, devinst list change
found something COM port, devinst=00000007
found something COM port, devinst=00000002
usb_add: usb:0/140000/0/3/1
usb_add: usb:0/140000/0/1
 
Last edited:
@Defragster - Here's a new set of the utils with some fixes, including use of high-res timestamps on Windows 8 & 10. The remaining dialogs in Teensy Loader are now non-blocking, which should solve the problem you had before where the file unreadable dialog caused problems.

This stuff goes into Arduino's hardware/tools folder.

https://www.pjrc.com/teensy/beta/windows_util_142b2_fixes.zip

I'm still working on the missing WM_DEVICECHANGE problem. When I run teensy_ports from the command line, it works. But when Arduino runs it, no WM_DEVICECHANGE. This matters, because teensy_serialmon also uses WM_DEVICECHANGE to (hopefully) give rapid response to disconnecting and reconnecting while the serial monitor window is active.
 
I found the WM_DEVICECHANGE logging bug!

Going to clean up some other logging stuff and add more logging into teensy_serialmon. Hopefully that will be enough to figure out why it's not detecting your COM port.
 
opps - on here for hours today and just catching your 4:01 am post . . . is there an update with the WM_DEVICECHANGE about ready?

Edit>: BTW - I went back to TyComm on TD 1.41 and it works without error. Two IDE instances - one on T_3.5 and T_3.6 - programming and giving one SerMon each for some dozen compiles. So there is no change in my normal ability to program.
 
Shut down IDE and opened T_ports -v, then IDE 1.8.5 on Win 10 with TD1.42b2 and provided posted binaries.

Summary:: Failed to Program without Button.

Did the T_3.6 saved files in zip for 3.6 then closed down - opened and switched to T_3.5 and did the same steps.

First the zip so I don't forget:View attachment T_SerMon_142b2.zip

Steps:
both devices running - Master.ino is T_3.6
Open Single instance of IDE
Selected T_3.6 after Button to be sure what port it was on - shown as HID ID, not COM# when selected
UPLOAD
Opened T_sermon
UPLOAD AGAIN
BUTTON > Programmed
Saved T_ports3_6.txt
Saved TLoader3_6.txt

closed T_Loader and T_ports and IDE
Opened T_ports -v, T_loader then IDE
Selected T_3.5 on COM12
Sketch Slave.ino - Set to T_3.5
Opened T_sermon - it was active
UPLOAD - FAILED
Button - Programmed
T_Sermon shows streaming data with title bar : [offline] (Teensy)
Saved T_ports3_5.txt
Saved TLoader3_5.txt
copied and saved bottom of IDE to IDEtext3_5

>> Packed the ZIP shown above.

Let me know if those were good steps and it shows anything - I can repeat them with new binaires when ready.

<EDIT>: In case it matters AFAIK Both Teensy's are on USB 3.0: One front Panel T_3.6, the T_3.5 a USB 3 Hub.
Returned to TyComm TD_1.41 and T_3.5 programs normally from that app.
 
Last edited:
Hi Paul,

Thought I might try out your zip file... Assume they all went into hardware\tools...

When I tried a build (after reverting back from tycommander), I did a build for T3.6... W10 64 bit...

Got to the end of build and error:
Code:
"D:\arduino-1.8.5\hardware\teensy/../tools/teensy_post_compile" "-file=Mouse.ino" "-path=C:\Users\kurte\AppData\Local\Temp\arduino_build_348310" "-tools=D:\arduino-1.8.5\hardware\teensy/../tools/" "-board=TEENSY36"
Opening Teensy Loader...

Could not start Teensy Loader application! (r=1)

  attempted: D:\arduino-1.8.5\hardware\teensy/../tools/\teensy.exe

Multiple libraries were found for "USBHost_t36.h"
 Used: C:\Users\kurte\Documents\Arduino\libraries\USBHost_t36
 Not used: D:\arduino-1.8.5\hardware\teensy\avr\libraries\USBHost_t36
Using library USBHost_t36 at version 0.1 in folder: C:\Users\kurte\Documents\Arduino\libraries\USBHost_t36 
quitexit status 1
Error compiling for board Teensy 3.6.

If I simply double click on teensy.exe, I get an error screen.

teensy_can_not_run.jpg
 
I don't understand why it won't run. I extracted the ZIP file here on Windows 10. The extracted file runs.

capture.png

These are the MD5s for the files. Maybe something got corrupted?

Code:
71fd39970ec12d68a9f73649f1a9e90f  teensy.exe
4f341c873b3f38caa03b45088a7eb7c8  teensy_ports.exe
a6d114c0fa34e4c42df4af4e9854fd6b  teensy_post_compile.exe
ae9eaec2e565e474adf6627f2a1307fc  teensy_reboot.exe
b4d29b9226c5c1b266d2a4353bc1ed5e  teensy_serialmon.exe
 
Looks like Norton eat it... Trying to work around Norton right now..

Disabled the real time scan in folder, now it allowed me to put the updated file there...

It runs and now does allow me to download to T3.6 :D


Sorry if this is obvious, but when I look at the new ports menu, I am not sure which one I should use...

That is if I use the one from the bottom list, it works:

teensy_can_not_run.jpg

But if Instead I use the one from the top list, which looks better as it actually knows it is a Teensy 3.6... the resultant serial window says off line:

Teensy_Serial.jpg
 
Downloaded fine for me - and worked on T_3.6! First and repeat times! Then Button push too!

NOTE: I was expecting to Cut/Paste from Verbose - FAILS with streaming messages - finally found Save As. BUT:: Pushing Button one more time hoping to stop messages got it in a Neurotic state - see end of file - unplugged both and that didn't help.

That drama aside - here are T_3.6 files I saw in case they show something::
View attachment IDE_TxT_36.txt
View attachment TLoader36.txt
View attachment Tport36.txt

I'll run it quick with T_3.5 to see it works - and note if not - but not upload until later if needed

<edit> notice there was No Comment on Norton the most expensive stupid waste of bits on the planet.
 
Last edited:
Looks like Norton eat it... Trying to work around Norton right now..

Disabled the real time scan in folder, now it allowed me to put the updated file there...

It runs and now does allow me to download to T3.6 :D


But if Instead I use the one from the top list, which looks better as it actually knows it is a Teensy 3.6... the resultant serial window says off line:

Yes the UPPER list - confused me the other day too. That should open and show Teensy_sermon - and in bootloader mode it show the raw USB device name.
 
Runs fine on T_3.5 as well to program SLAVE.ino - Upload, Upload, Button logged here :View attachment TLoader35.txt

NOTE: I still see teensy_sermon actively streaming USB but titlebar :: [offline] (Teensy)

Both T_35 and T_3.6 show alive on the :: Tools / Ports

T35Offline.PNG
 
Just closed T_sermon and re-opened : Showing [offline] seems to be the normal connected state - that will be in my log post #48
 
Status
Not open for further replies.
Back
Top