Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15287

Code won't upload to Arduino Uno

$
0
0

Hi, I'm new to using Arduino, and I'm currently using it in a school project. I was supplied an Arduino Uno by my school for my project, and I've written the code, but whenever I try and upload it to the Arduino, this is what I get:

Sketch uses 7502 bytes (23%) of program storage space. Maximum is 32256 bytes.
Global variables use 511 bytes (24%) of dynamic memory, leaving 1537 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=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x9c
Failed uploading: uploading error: exit status 1

The problem isn't the USB or the laptop I'm using, as I've tested this out with two different USBs and laptops, and I also managed to upload the same code onto an Arduino Uno R3 that I have at home without any difficulties whatsoever.

I've also tried pressing the reset button, as I've seen suggested, which doesn't do anything at all.
I don't know if this Arduino is brand new or not - my teacher just handed one to me without telling me where he got it from or anything.

Is there anything I can do to fix it? My project is due in pretty soon, and this is literally the only thing that's stopping me from completing it right now.

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 15287

Trending Articles