Plugging along on a simple little sketch for my Uno R3 in IDE 1.8.19, compiling & testing piece by piece happy as a clam because I'm finally figuring out how to use my DS3231 (yes, a newbie) and watching the lines in the serial monitor do just what I want them to do. Everything seems smooth until, from time to time, when I upload an edited sketch, the phrase "uploading to I/O board" instead of just "Uploading..." appears in the notification area at the bottom of the sketch window.
When "uploading to I/O board" appears, things seem to stall (absolutely nothing happens) until I click the "verify" or "Upload" button again. The problem is that after that nasty "uploading to I/O board" shows up, any subsequent and seemingly successful uploads (it shows "Done uploading" and the onboard LEDs blink as they do when uploading) of a previously-working sketch do not work; no RTC printouts on the serial monitor nor are my relays clicking away at 5 second intervals as they had been.
Example sketches like "Blink" and others upload and work fine.
What's the difference in "Uploading..." vs "uploading to I/O board"??
What's the difference in "Uploading..." vs "uploading to I/O board"??
I found these instructions below, which might help you understand the difference.
As I understand it, when the board cannot be reset via serial port (DTR pin, see here), then if the sketch is raised with this mode, it makes the microcontroller restartable when receiving instructions sent by the IDE, without the need for the user perform the reset procedure manually.
I believe there is not much information about this on the Internet, because it is much more convenient to connect the DTR pin of the serial port to the reset pin of the microcontroller.
Furthermore, with the possibility of using a Wi-Fi network (ESP8266, etc.), the OTA software seems to perform a similar procedure, leaving the microcontroller in a state of receiving the update, without the need for the user to physically interfere with the board.
Using the "Upload to I/O Board" Button
- You first need to select the serial port, which can only be done while a sketch is running. The first sketch can only be run by using Verify and the PushButton, as described above.
- Then just click the "Upload to I/O Board" button.
- After compiling your sketch, TeensyDuino will send a command to request the board to reboot. This only works if a previously loaded sketch is still running. If the board can not be rebooted by request, you will get an error message to let you know the PushButton must be pressed. If it does work, the Teensy Loader will automatically program and run your sketch.
- In the normal course of trying ideas, editing code and running each change, clicking the Upload to I/O Board button normally works, and is one less step than having to also press the PushButton on the Teensy.
Source: https://www.pjrc.com/teensy/td_usage.html
OTA Updates
- OTA (Over the Air) update is the process of uploading firmware to an ESP module using a Wi-Fi connection rather than a serial port. Such functionality becomes extremely useful in case of limited or no physical access to the module.
Source: https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html#ota-updates
I have had this on a couple occasions where a lot of data is going to the serial monitor .
Closing the serial monitor fixed it
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.