Thanks for the help!
First, a trivial matter: to get the serial monitor to work, I had to do this to make Serial.printxx() calls work correctly and not "miss" any of the early ones in startup():
//Serial.begin(9600);
Serial.begin(115200);
while (!Serial);
delay(1000); // Early prints don't show up without this delay
However, I can't get the second update (the first OTA update) to work.
The build works, and the initial upload works, and then the TCP/IP port shows up as an option for the Board/Port selection in VS. If I pick that, and attempt an update (I was asked for the password ('password') the very first time, but not on subsequent attempts [is it expected that I would not be asked again after the first time?]), I get this in the VS output window:
# Compute Size: 7-2017q4/bin/arm-none-eabi-size" -A _OTA.ino.elf"
Program WiFi101_OTA size: 76148 bytes (used 29% of a 262144 byte maximum) (2.57 secs)
Minimum Memory Usage: 10012 bytes (31% of a 32768 byte maximum)
TRIAL Version of Visual Micro (Expires On 26 April 2024)
(Existing customer? CTRL+click Or go to this link (
https://www.visualmicro.com/page/Trial-Mode-VS2022.aspx)
[code]Uploading 'WiFi101_OTA' to 'Arduino UNO R4 WiFi (unor4wifi)' using '192.168.1.247'
Uploader started for board Arduino UNO R4 WiFi (unor4wifi)
Upload method will be: bootloader
Uploading via Bootloader
Port Properties (network)
Name=Arduino
HostName=Arduino
Address=192.168.1.247
port=65280
Protocol=Any
ssh_upload=no
tcp_check=no
auth_upload=yes
board=arduino
password=password
{runtime.tools.arduinoOTA.path}\bin\arduinoOTA -address 192.168.1.247 -port 65280 -username arduino -password "password" -sketch _OTA.ino.bin" -upload /sketch -b
The system cannot find the file specified
Any idea what's up here?