distro_inferno
Member
I'm worried that using the Snooze library's timers may have somehow fudged my Teensy 3.2. I'm no longer able to upload code through the Arduino IDE (using Arduino 1.8.3 and the Teensy Loader 1.37 program on windows 7). When I hit compile, the Teensy Loader shows lots of this:
With the remote cmd status being received many, many times before closing the connection. I hit the program button on the Teensy 3.2 during this period and after but it doesn't do anything. My hardware does not respond to new code being uploaded, it does not reset itself, and I can only get it to reset if I unplug and plug back in the USB serial cable.
The code is huge but the relevant parts are the calls to:
Snooze.deepSleep( config_teensy32);
and:
timer.setTimer(15000);
which determine wakeup time. Using the Snooze library breaks the serial connection to the PC after it first goes to sleep. I tried using the SnoozeUSBSerial class to re-enable it but no luck, it just causes the Arduino IDE to start reporting errors about unable to make a serial connection while running.
Q: What would cause the Teensy 3.2 to not accept uploads any more? Is it sleeping or being interrupted too quickly while powered? It's only every 15s so I don't know why the uploader can't "catch" it at a good time.
Code:
15:07:29.538: remote cmd: "status"
15:07:29.538: status data sent
15:07:29.638: remote cmd: "status"
15:07:29.638: status data sent
15:07:29.748: remote connection closed
With the remote cmd status being received many, many times before closing the connection. I hit the program button on the Teensy 3.2 during this period and after but it doesn't do anything. My hardware does not respond to new code being uploaded, it does not reset itself, and I can only get it to reset if I unplug and plug back in the USB serial cable.
The code is huge but the relevant parts are the calls to:
Snooze.deepSleep( config_teensy32);
and:
timer.setTimer(15000);
which determine wakeup time. Using the Snooze library breaks the serial connection to the PC after it first goes to sleep. I tried using the SnoozeUSBSerial class to re-enable it but no luck, it just causes the Arduino IDE to start reporting errors about unable to make a serial connection while running.
Q: What would cause the Teensy 3.2 to not accept uploads any more? Is it sleeping or being interrupted too quickly while powered? It's only every 15s so I don't know why the uploader can't "catch" it at a good time.
Code:
(see post below for better example)
Last edited: