
Originally Posted by
PaulStoffregen
Has the problem ever happened with multiple Teensy boards, but only 1 instance of the Arduino IDE running? (and the hassle of having to repeatedly switch which board you're using in the menus)
My understanding is this looks like a problem from running more than 1 instance of the Arduino software, rather than how many Teensy boards you have connected.
No, it is correct the problem is with 2nd IDE - those words were in my history and head - but not typed in that note. At one point it seemed hitting compile - then starting Tsermon caused trouble but not seeing that now, that may have been in the subset of 2nd IDE as well.
The trouble comes from 2nd IDE needed to get a second active Sermon to debug a pair of Teensys in any fashion. The consistent thing noted some time back is that the repeating message 'callback ####' message stops coming through into the log file - hoped that would point to where things could go wrong. **(1)
I just tried single IDE with TLoader and going back and forth between T_LC and T_3.6 is looking fine.
The only way I saw an issue just now was getting the Board and Port out of sync. TLoader takes it offline then complains it is the wrong device and leaves it in bootloader - then changing port won't upload to the changed device until that 'other bootloader' device resets or restarts or is removed. It seems knowing the device and having the hex should make TLoader not ever take the 'wrong' Teensy offline?
**(1)::
>> After the above testing and notes I opened a 2nd IDE and once loaded both JAVA_IDE's have a TPort, and 'callback ####' stops.
>> I put "telnet 127.0.0.1 28542" in my 'Start Run' and that would take 3-4 seconds to connect and I could type 'list'. In this state the telnet window opens - then fails to connect and EXITS!
- open of cmd window reports this:
Connecting To 127.0.0.1...Could not open connection to the host, on port 28542: Connect failed
>> Hitting: Tools at this point indeed gives 8 second pause and there is no 'Teensy' section in ports. Each hit on 'Tools' spawns a new Tports.
>> Just saved new log: Single2DoubleIDE.zip
>> Opps! I ran prior beta tports-v first but it said not running - but then running the Beta5 Version it shows this and telnet still aborts:
Code:
teensy_ports, verbose mode
LoadLibrary cfgmgr32 ok
LoadLibrary ntdll ok
callback 0024
callback 0081
callback 0083
hWnd = 401488
begin is_already_running check
GetTcpTable success, 73 rows
0 : 135
C0A8016C : 139
7F000001 : 3149
0 : 3389
0 : 5040
7F000001 : 5354
7F000001 : 27015
7F000001 : 28542
7F000001 : 28542
7F000001 : 43227
0 : 49664
0 : 49665
0 : 49666
0 : 49670
0 : 49674
0 : 49718
0 : 49734
7F000001 : 49916
7F000001 : 65000
7F000001 : 65001
0 : 445
0 : 2869
0 : 5357
0 : 7680
end is_already_running, ret=0
not already running
socket created
bound to port 28542
found_usb_device, id=\\?\usb#vid_16c0&pid_0483#2056390#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
found_usb_device, loc=usb:0/140000/0/8/1 Port_#0001.Hub_#0005
found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0277
found_usb_device, devinst=00000002
add: loc=usb:0/140000/0/8/1, class=Ports, vid=16C0, pid=0483, ver=0277, serial=205, dev=\\?\usb#vid_16c0&pid_0483#2056390#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
00000002, class=Ports, portname=COM8, id=USB\VID_16C0&PID_0483\2056390
comport_from_devinst_list attempt
found Ports in classguid_list at index=0
port COM8 found from devnode
found_usb_device complete
found_usb_device, id=\\?\usb#vid_16c0&pid_0483#1113960#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
found_usb_device, loc=usb:0/140000/0/8/2 Port_#0002.Hub_#0005
found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0273
found_usb_device, devinst=00000005
add: loc=usb:0/140000/0/8/2, class=Ports, vid=16C0, pid=0483, ver=0273, serial=111, dev=\\?\usb#vid_16c0&pid_0483#1113960#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
00000005, class=Ports, portname=COM11, id=USB\VID_16C0&PID_0483\1113960
comport_from_devinst_list attempt
found Ports in classguid_list at index=0
port COM11 found from devnode
found_usb_device complete
usb_add: usb:0/140000/0/8/2 COM11 (Teensy LC) Serial
usb_add: usb:0/140000/0/8/1 COM8 (Teensy 3.6) Serial