Hi,
I got the Arduino AI Assistant to make some code to get two analog inputs to move the cursor and it worked but now when I try to upload a sketch I get this error:
Sketch uses 84812 bytes (32%) of program storage space. Maximum is 262144 bytes.
Global variables use 9452 bytes (28%) of dynamic memory, leaving 23316 bytes for local variables. Maximum is 32768 bytes.
Restarting in bootloader mode
1200-bps touch: opening port at 1200bps: Invalid serial port
Reset before upload: 1200-bps touch: opening port at 1200bps: Invalid serial port
I can't figure it out, so if anyone has any help that would be very appreciated.
Hi @isaac_boyd. When a sketch that uses USB HID capabilities (e.g., the "Keyboard" or "Mouse" libraries) is running on the UNO R4 WiFi board, attempting to upload via the standard procedure fails with this error.
It is necessary to use a special upload procedure under these conditions. I'll provide instructions you can follow to do that:
Unplug the USB cable of the UNO R4 WiFi board from your computer.
Connect the UNO R4 WiFi board to your computer with the USB cable.
Press and release the button marked "RESET" on your UNO R4 WiFi board quickly twice.
You should now see the on-board LED that is marked "L" start pulsing.
Now try uploading again, just as you did before. The upload should now complete successfully.
If the sketch you uploaded to the board uses the USB HID capabilities, it will be necessary to use the special upload procedure described above for subsequent uploads. If you switch to a sketch that does not use USB HID then you can resume uploading via the standard procedure.
Please let me know if you have any questions or problems while following those instructions.