
Originally Posted by
PaulStoffregen
Oh, now that is a strange behavior!
Looks like I do have more Windows-specific troubleshooting to do.....
...
Okay this time since I posted 4088 and 4096 seconds running not sleeping.
>> Grabbed corner of the first shrunk - started to grow it and SLEEP.
>> Grabbed the corner of the second - Shrinking … SLEEP
Both instances of JAVA under 1.5% CPU - of course during screen shot one shot over 2% … also as low as .7 and .9 %

This time I plugged in a wireless MSFT Mouse radio dongle - to a separate HUB - USB CHIME CONNECT and Boom - both t_SerMon's running.
And to be complete this is the current state of the LPS.ino in use - I added the 24 MHZ test code and removed it with __xx. It prints 4 wide counts - so on shrinking it forces horizontal scroll - not sure what else is unique:
Code:
#if defined(__IMXRT1062__xx)
extern "C" uint32_t set_arm_clock(uint32_t frequency);
#endif
uint32_t count, prior_count;
uint32_t prior_msec;
uint32_t count_per_second;
bool flip = true;
void setup() {
Serial.begin(1000000); // edit for highest baud your board can use
while (!Serial) ;
#if defined(__IMXRT1062__xx)
// set_arm_clock(24000000);
set_arm_clock(600000000);
Serial.print("F_CPU_ACTUAL=");
Serial.println(F_CPU_ACTUAL);
delay(3000);
#endif
count = 10000000; // starting with 8 digits gives consistent chars/line
prior_count = count;
count_per_second = 0;
prior_msec = millis();
pinMode( LED_BUILTIN, OUTPUT );
digitalWriteFast( LED_BUILTIN, flip );
}
void loop() {
while (1) {
Serial.print(" >count=");
Serial.print(count);
Serial.print(", lines/s=");
Serial.print(count_per_second);
if ( !(count % 4) ) {
Serial.print(' ');
Serial.println(millis() / 1000);
}
count = count + 1;
uint32_t msec = millis();
if (msec - prior_msec > 1000) {
flip = !flip;
digitalWriteFast( LED_BUILTIN, flip );
if ( !Serial ) {
delay( 50 );
flip = !flip;
digitalWriteFast( LED_BUILTIN, flip );
}
prior_msec = prior_msec + 1000;
count_per_second = count - prior_count;
prior_count = count;
}
}
}
Corner resize reliable repro just now - 4 out of four easily with the last at 6000 seconds … one did take about ten sets of to-and-fro - a pause … and repeat but it went to sleep.