avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avrdude error when uploading


From: Axel
Subject: Re: Avrdude error when uploading
Date: Wed, 8 Jun 2022 04:34:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

This sounds like either a hardware issue (wiring or somehow electrically
killed Nano) or the Nano has no bootloader installed.

The questions I raise in such a case:

1) Did it already work? (flashing the Nano)
2) If yes, what happened since it has last time worked.

Best, Axel


On 07.06.22 04:33, EJ Salga wrote:
I get this error:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00

When I upload this code to my Nano:

|#include <Servo.h> Servo myservo; int potpin = A0; int val; void
setup() { myservo.attach(9); } void loop() { val = analogRead(potpin);
val = map(val, 0, 1023, 0, 180); myservo.write(val); delay(15); } |

The Arduino help center says I might have selected the wrong board and
port. So I reselected the Nano board and put in COM3. I also reinstalled
the CH340 driver as my Arduino is a clone. I’ve tried reuploading and
restarting but nothing seems to work and I get the same error.

Any help is much appreciated.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]