@Paul - both T4's running that p#4240 lps.ino still this AM - was like 20K seconds … 6 hours.
Restarted both - both ran again a couple of minutes.
Restarted both again - one stopped at 2 seconds while the other ran. Instead of upload I just unpowered the running T4 and immediately the stalled T4 picked up running.
two things:
> If it fails on Windows it
can fail early with regularity in less than 30 seconds from power on
> when it fails - it seems another teensy USB event can wake it: Incoming USB, 2nd Teensy upload, 2nd Teensy power down
<edit/Update.
Spent some short time in between other stuff trying to see REPRO - they didn't happen as much - restarted both IDE's and T4's Just found the one stalled with this at 2851 seconds:
Code:
>count=778225137, lines/s=277153 >count=778225138, lines/s=277153 >count=778225139, lines/s=277153 >count=778225140, lines/s=277153 2851
>count=778225141, lines/s=277153 >count=778225142, lines/s=277153 >count=778225143, lines
When I powered down the running T4 - the instant it went off the second T4 picked up running some hundreds of seconds in advance. If I had captured the counts I could say if it thought it was running lines that just were not making it to the GUI output, but that is hindsight.
>> Two more restarts failed at 1708 seconds then the next hanging at 405 seconds. This is with twin IDEs to Twin T4's on SerMon. The one that started at the same time as the one stopped now at 405 seconds is still running at 8657 seconds. So it just goes 'to sleep' while the T4 runs as it evidenced by the LED blinking toggle each second.
Interesting? Again two IDE instances - one T4 each - above hang persisted 405 versus 8657 seconds only the running one was over 13,000 now. Wondering how else to WAKE the sleeping t_sermon in case it pointed to the problem - I closed the running t-Sermon and immediately the Sleeping t_sermon awoke to running. Not sure if the T4 USB has gone to sleep [ due to some PC interaction ] or if the PC code is asleep and not processing USB from the T4?
<edit> - just got one sleeping and repeated the above - it may be the 2nd t-sermon coming back open after closing that restarts the first t_sermon from sleep - it was that this time.
Additionally I put in code on the one second toggle to do this and it detects closing of t_sermon as expected - but this code did NOT trigger when the t_sermon goes to sleeping - so Serial is seen as active:
Code:
if (msec - prior_msec > 1000) {
flip = !flip;
digitalWriteFast( LED_BUILTIN, flip );
if ( !Serial ) {
delay( 50 );
flip = !flip;
digitalWriteFast( LED_BUILTIN, flip );
}
// ...
Only other thing I can try to add would be enable the Serial4 PRINT_DEBUG_STUFF to see if any debug messages come about as the IDE T-sermon goes sleeping?
<
Update:> Not sure if this adds anything - after running 8 hours one of the two T4's output to t_sermon froze again at 28,000+ seconds while the other was running over 30K seconds.
There is a third unpowered T4 on the same hub. I powered that T4 and when it came online the frozen/sleeping t_sermon woke up.
> That T4 is not connected to any SerMon - TLoader is active - but just waking up and adding the device to the active USB list resulted in the return to operation of the sleeping T4 t_sermon.
Nothing compelling looking on either IDE instance as far as Error or info messages - both look about like this with various restarts in the past day:
Code:
Opening Teensy Loader...
"T:\\arduino-1.8.9t4\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-size" -A "T:\\TEMP\\arduino_build_244486/Try6_SerMon.ino.elf"
Sketch uses 32704 bytes (1%) of program storage space. Maximum is 2031616 bytes.
Global variables use 35872 bytes (3%) of dynamic memory, leaving 1012704 bytes for local variables. Maximum is 1048576 bytes.
T:\arduino-1.8.9t4\hardware\teensy/../tools/teensy_post_compile -file=Try6_SerMon.ino -path=T:\TEMP\arduino_build_244486 -tools=T:\arduino-1.8.9t4\hardware\teensy/../tools -board=TEENSY40 -reboot -port=usb:0/140000/0/8/6 -portlabel=hid#vid_16c0&pid_0478 Bootloader -portprotocol=Teensy
TeensyPipeMonitor open usb:0/140000/0/8/6
opened, dev=COM30, name=Serial
disconnect
opened, dev=COM30, name=Serial
disconnect
opened, dev=COM30, name=Serial
disconnect
opened, dev=COM30, name=Serial
disconnect
opened, dev=COM30, name=Serial
disconnect
opened, dev=COM30, name=Serial
FifoDocument.getText *****NEGATIVE NUMBER ERROR*****
TeensyPipeMonitor close
inputPipeListener exception: java.lang.InterruptedException: sleep interrupted
TeensyPipeMonitor close
window_close
errorPipeListener thread exit
inputPipeListener thread exit
TeensyPipeMonitor ctor, port=usb:0/140000/0/8/6
disconnect
TeensyPipeMonitor open usb:0/140000/0/8/6
opened, dev=COM30, name=Serial
disconnect
opened, dev=COM30, name=Serial
disconnect
opened, dev=COM30, name=Serial
TeensyPipeMonitor close
inputPipeListener exception: java.lang.InterruptedException: sleep interrupted
TeensyPipeMonitor close
window_close
errorPipeListener thread exit
inputPipeListener thread exit
TeensyPipeMonitor ctor, port=usb:0/140000/0/8/6
disconnect
TeensyPipeMonitor open usb:0/140000/0/8/6
opened, dev=COM30, name=Serial
disconnect
opened, dev=COM30, name=Serial
disconnect
opened, dev=COM30, name=Serial
disconnect
opened, dev=COM30, name=Serial