Hi, I'm new to the forum, and I'm new to Arduino. I have a problem and I can't solve it. The arduino board is identified in the PC (device management), in the Arduino IDE, but I cannot add another code or give Erase All. It gives me an error when uploading, as if the board is not identified as being connected. I tried on 2 PCs, at the moment it has a code that turns on and off a WS2812B led strip. What would be the cause and how could I solve it? Thank you
Welcome to the forum
More details needed, for example
Which version of the IDE ?
Which Arduino board ?
Which Operating System ?
Where did you see the "Erase All" option ?
- The board is Arduino UNO.
- Arduino IDE is version 2.0.4.
- Windows 11 operating system.
- I looked on the internet, I can't find the link where it said to hit Burn Bootloader.
I would like to put another code on the board, but I can't. The error that appears when uploading the Arduino IDE is: Sketch uses 2366 bytes (7%) of program storage space. Maximum is 32256 bytes.
Global variables use 41 bytes (2%) of dynamic memory, leaving 2007 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=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xb2
Failed uploading: uploading error: exit status 1
what board and port did you specify under Tools->board and Tools->port
Tool->Port-> COM4 (Arduino UNO)
Tool->board -> ARDUINO UNO
Is there anything connected to the Rx/D0 or Tx/D1 pins of the UNO?
no, only the pins were connected: digital 6, digital 5, gnd, and 5v. but I disconnected everything and it still does that. Only the "L" LED on the arduino board is lit.
I checked the port, I checked the board, I checked "programmer" (where I set several things: arduino ISP, Arduino ISP Atmega32u4, Arduino as ISP). the board is UNO R3 (ATMel chip), I have not connected anything in the pins. The lit LEDs are: ON and "L".
when I check, everything is ok. After that I give Upload and I get the above error.
The button that you circled compiles the sketch but does not upload it and the message that you point to is not an error, it tells you how much memory that the sketch uses
What happens if you click the Upload button, ie the second one from the left ?
yes, I know that button only does a check, when I press the second button (Upload) I get this error:
Sketch uses 2366 bytes (7%) of program storage space. Maximum is 32256 bytes.
Global variables use 41 bytes (2%) of dynamic memory, leaving 2007 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=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xb2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xb2
Failed uploading: uploading error: exit status 1
Let's take this step by step
Unplug everything including the USB cable from the board. Plug the USB cable back into the board. Does the PC recognise teh board a create a COM port and if so, what is its number ? Use Device Manager to check whether a COM port is created
I disconnected everything, I connected the usb cable to the board, I checked in the device manager and in the Arduino IDE if the port is the same. Everything is ok - see the picture.
Good. You have a COM port created when you plug in the board and seem to have that port selected in the IDE as well as the board
Are you sure that the USB cable that you are using is a data cable and not a charging cable with no data lines in it ?
is the cable that came with the board. I managed to put a code on it, when I wanted to modify it or add another code I couldn't, it gave an error when uploading.
at the moment it has a code on it where it flashes a WS2812B led strip for me.
EDIT:
the code loaded on the board is:
#include <Adafruit_NeoPixel.h>
#define LED_PIN 6
#define LED_COUNT 20
#define SWITCH_PIN 2
Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);
int switchState = 0;
int lastSwitchState = 0;
bool ledOn = false;
void setup() {
strip.begin();
strip.show();
pinMode(SWITCH_PIN, INPUT_PULLUP);
}
void loop() {
switchState = digitalRead(SWITCH_PIN);
if (switchState != lastSwitchState) {
if (switchState == HIGH) {
ledOn = !ledOn;
if (ledOn) {
turnOn();
} else {
turnOff();
}
}
delay(50);
}
lastSwitchState = switchState;
}
void turnOn() {
for (int i = 0; i < LED_COUNT; i++) {
strip.setPixelColor(i, 255, 0, 0);
strip.show();
delay(120);
}
}
void turnOff() {
for (int i = LED_COUNT - 1; i >= 0; i--) {
strip.setPixelColor(i, 0, 0, 0);
strip.show();
delay(120);
}
}
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

