Is there another way of uploading sketch to Arduino other than by USB?
Yes. You can connect an ISP programmer and program it through that. The Arduino IDE has a Sketch > Upload Using Programmer feature for this.
If you're using an AVR-based Arduino board (e.g., Uno, Nano, Leonardo, Mega), then you can make an "Arduino as ISP" programmer from a spare Arduino board and use that with "Upload Using Programmer".
One important thing to note is that when you do an "Upload Using Programmer" it erases the bootloader, which makes it so you can no longer do standard uploads by USB. You can replace the bootloader and go back to normal uploads using Tools > Burn Bootloader.
the MCU can write to its own flash memory. and you can transfer the update data to MCU as any data.
Thank you
The reason I ask is I have three UNO boards that refuse to accept a sketch. All three give me the same error codes.
"avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00"
i have researched this error message and see a lot of things to do, and none of them worked for me. So I was thinking I'd try an alternate method of uploading my code. I still have one working board so I was also considering reburning the bootloader to see if that helps any.
If nothing works I guess I have three boards that are interesting works of art.
The circuit to burn the bootloader is the same as to "Upload Using Programmer", so it will be easy enough to give Burn Bootloader a try while you're at it.
pert:
The circuit to burn the bootloader is the same as to "Upload Using Programmer", so it will be easy enough to give Burn Bootloader a try while you're at it.
That's exactly what I was thinking I could do. Thanks, appreciate the confirmation. I have been a little concerned about that.
ov10fac:
Is there another way of uploading sketch to Arduino other than by USB?
after 300 posts you should know that Arduino is not only a name for Uno or AVR boards
Juraj:
after 300 posts you should know that Arduino is not only a name for Uno or AVR boards
I do and what is the point you are trying to make?
ov10fac:
I do and what is the point you are trying to make?
I almost wrote a long answer about OTA. I am glad I stopped my self and wrote a short comment only.
OTA? Over The Air?
ov10fac:
OTA? Over The Air?
Correct.