Arduino Is Not Programmable: What To Do In Case Of "not In Sync: Resp = 0x30" Error

Table of contents:

Arduino Is Not Programmable: What To Do In Case Of "not In Sync: Resp = 0x30" Error
Arduino Is Not Programmable: What To Do In Case Of "not In Sync: Resp = 0x30" Error

Video: Arduino Is Not Programmable: What To Do In Case Of "not In Sync: Resp = 0x30" Error

Video: Arduino Is Not Programmable: What To Do In Case Of
Video: Fix avrdude: stk500_getsync(): not in sync: Error In Arduino 2024, December
Anonim

It happens that you write programs for "Arduino", load them into memory, and everything works great. And then suddenly they don't load anymore. And the development environment, when trying to upload a sketch, gives an error: "arduino avrdude: stk500_recv (): programmer is not responding avrdude: stk500_getsync () attempt 10 of 10: not in sync: resp = 0x30".

What? Has the board really burned out? Take your time to despair: perhaps all is not lost yet. Let's try to figure it out.

Arduino IDE window with error
Arduino IDE window with error

Instructions

Step 1

"Arduino" is not programmable, although everything worked before. There are several possible reasons for this behavior, which must be checked:

- for some reason, the driver has crashed;

- incorrectly selected COM port;

- somewhere there is an electrical connection, which should not be (short circuit);

- The bootloader of the Arduino board has crashed.

Let's go through all the items on this list and make sure until we fix the problem.

Error
Error

Step 2

Let's open the Windows Device Manager via the Start menu -> Control Panel -> Hardware and Sound -> Device Manager. There is a shorter option: press the Windows key on the keyboard and, without releasing it, press the Pause key. A system properties window will open, with a link to Device Manager on the left side.

Find and open the Ports (COM and LPT) section in the manager. If the driver is installed and working correctly, there should not be any overlay icons such as a question or exclamation mark on the Arduino device icon. If there are such icons, then there is a problem with the driver. If the Arduino or USB-Serial device is not present at all in this section of the manager, then the driver is not even installed. In any of these cases, the driver must be installed (or reinstalled).

In the device manager, select our Arduino board (or an unknown device that appears when the Arduino board is connected to the computer), right-click on it and select Update drivers … from the context menu.

Select Search on this computer and specify the path to the directory with the driver for the board. Next, follow the instructions of the New Hardware Wizard.

For original boards of the Arduino family, drivers are available in the development environment directory, in the drivers subdirectory. For "Arduino" -compatible boards, look for the driver on the Internet.

Normal state of Arduino in Windows device manager
Normal state of Arduino in Windows device manager

Step 3

Let's check that we have correctly specified the COM port in the Arduino IDE. You can check which port is assigned by the system to our Arduino board in the Windows Device Manager. Arduino boards are located in the Ports (COM and LPT) section and are usually identified as "Arduino" or "USB-Serial" devices.

Go to the Tools -> Port menu and make sure that the correct port is specified. If not, indicate the desired one.

Choosing a COM port in the Arduino development environment
Choosing a COM port in the Arduino development environment

Step 4

If the Arduino board lies on a conductive surface, there is a risk that there is a short circuit somewhere. This can cause an error in the operation of the board and, in particular, interfere with the normal programming process. Check that the board is on an insulated surface.

Also, to the same type of reasons, I would attribute the connection of unauthorized wires to pins 0 and 1 of the Arduino board, which are RX and TX ports and are used in the process of loading a sketch into the board's memory.

Step 5

If none of the above helps, let's try another option: overwrite the board's bootloader.

The bootloader is a special control program for the Arduino, which is executed when the device is turned on and which sets the operating mode of the board: either it goes to the execution of the program from the Arduino memory, or to the computer programming procedure.

To implement this option, we need a programmer. The diagram for connecting the programmer to the Arduino is shown in the figure.

After connecting the programmer in the "Arduino" programming environment, in the Tools -> Programmer menu, indicate the type of our programmer. For example USBasp. Now, in the same Tools menu, select the Burn Loader item. This process does not take long.

If the operation was successful, the IDE will report it. And the Arduino board will blink happily with the LED on the 13th pin.in addition to the bootloader, it contains a default sketch - a sketch of blinking LED Blink.

If, after all the manipulations done, the board does not come to life, perhaps you really burned the microcircuit. My condolences.

Recommended: