I am experiencing an upload problem with my Arduino Uno R3 where I have uploaded a code to it successfully but now when I try to upload again it will not upload. I have tried the trouble shooting and have looked over the forum on Core Electronics and nothing can make it work. The connections all work and it seems not to have any problems with it except for the uploading bit.
The project I am building is a digital counter with a break beam sensor. All parts were ordered from this website, this includes:
Uno R3 (Arduino-Compatible
0.100"(2.54 mm) Breakaway Male Header
7- Segment Display - 4 digit (Red)
Shield - proto PCB Rev3
Resistors 1K x14
I hope you can help me out here in a bit of strife with this.
Thanks.
Regards: Karl Hornsby
This is the error I get.
Arduino: 1.8.3 (Windows 10), Board: âArduino/Genuino Unoâ
Sketch uses 2704 bytes (8%) of program storage space. Maximum is 32256 bytes.
Global variables use 236 bytes (11%) of dynamic memory, leaving 1812 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x81
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x81
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x81
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x81
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x81
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x81
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x81
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x81
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x81
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x81
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Using Port : COM4
Using Programmer : arduino
Overriding Baud Rate : 115200
A few things here donât make sense.
Sanity check: under the Tools menu, select âGet board infoâ and see if you can successfully identify the board.
Make sure your board is selected correctly: Arduino/Genuino Uno
The programmer option here is irrelevant - that is only for when youâre using an external programmer like an AVR ISP II or otherwise. For arduino thatâs generally only used for reflashing bootloaders.
If you have another arduino that works then it sounds like a problem with the first Arduinoâs bootloader.
You can re-flash the bootloader by following Arduinoâs instructions.
Luckily you have a working arduino, so you can set it up as an ISP. See the Minimal Circuit section of that link - you donât need half the components there if all youâre looking to do is flash the bootloader.
I have a theory about this and its around power⌠or lack of it.
I have suffered this same problem on one of my builds for along time, it too has a shield. In my case, I pretty much always get the error if I try to upload the new sketch with the shield plugged in. As soon as I unplug the shield I never get the error.
I think the problem comes from the architecture of the arduino and how if manages power. I believe that as soon as it detects the USB plugged in, thats its power source - of course then you are limited to 500mA, even if you have a bigger power source plugged into the barrel connector.
I maybe way off-course in my thinking but I cant make anything else stand up to logic, testing and real-world experience.
Thatâs a great suggestion Jon. Have you tried powering the Arduino up without the shield on @Karl47097?
Arduinoâs are certainly capable of being programmed with a shield, so there could be something else in play here that is adding to the issue.
I should check Karl that you donât have anything connected to the TX and RX pins of your board as even just a spare jumper wire can throw off the bus and wonât allow it to be programmed.
Sam,
Im not looking to hi-jack this thread, but yes. If I take the shield off then all is good and I can always upload a new sketch. My issue is not related to pins 0 & 1 (TX & RX) but I agree if a shield uses them it will / can screw things up.
My shield is a home made one with lots of bits stuck to it:slight_smile: The attached picture is almost when complete, just missing the hardware debouncing IC.