Ошибка ардуино programmer is not responding

I had this problem when working with Arduino IDE and XOD running on top of it.
What I found; looked like baud rates were being set differently at different stages in the setup. I compared Windows ‘device settings’, arduino IDE settings and XOD settings…and they are not the same and seem to change ? …hence the ‘avrdude:stk500_**** errors!

To demonstrate

Connect an Arduino board to a PC USB socket.

  1. On Windows 7; Control Panel System and SecuritySystem Device Manager… then double-click on ‘Ports (COM & LPT)

    You should see FTDI

    or

    USB-SERIAL CH340(COM7) … for a chinese serial com chip on the arduino board.
    Right-click on this and check ‘Properties Port Settings’ and note the ‘Bits per second’ value : e.g. 57600 … (write it down !)

  2. Open the arduino IDE and click on FilePreferences and tick the option ;’Show verbose output during: ‘upload‘.Then close the ‘Preferences’ screen.

  3. Load a small program that works. e.g. FileExamples1.Blink

  4. In the for your arduino board setup in the Arduino IDE;

    ToolsBoard … such as Arduino Nano

    ToolsProcessor … such as ATmega328P

    ToolsPort:COM7 for example … make sure a tick is selected.

    ToolsGet Board Info … will show info from the arduino serial chip (a good sign your usb cable works!)

  5. On the IDE toolbar select;

    • ‘Verify’ and shortly it should show ‘Done Compiling’

    • Click ‘Upload’ and the Blink program should load into the arduino chip.

  6. Now here is the interesting observation; The ‘verbose message at the bottom of the IDE screen will indicate what ‘Overriding Baud Rate : XXXXX’ is being used! Write this number down next to the value you found on the Windows devices setting.

  7. Now, if you are a XOD man, leave the arduino IDE running and run XOD.

  8. Open the XOD IDE and open (Deploy) say the 01-hello program and load it into your arduino board.

  9. Select’welcome-xod’ and select 01-hello program on left-side menu.

  10. Select ‘DeployUpload to Arduino …’

  11. select ‘Board model:’ and ‘Serial port:’ … eg COM7

  12. Scroll up in the ‘Deployment ‘ window and there will be another value labeled ‘Overriding Baud Rate : e.g.115200’

I HAVE FOUND THESE BAUD RATE SETTINGS CHANGE INEXPLICABLY !

I hope my observations will throw some light on your problem of erratic uploads.

Собрали новый проект.

Написали скетч.

Прошиваем….

Ооопс!

avrdude: stk500_recv(): programmer is not responding

«Но ведь вчера же все работало!»(с)

Не беда, советов по устранению на форумах много:

  1. В Arduino IDE не правильно указан порт к которому в системе подключено устройство. Перепроверяем.
  2. В Arduino IDE не правильно указана модель нашей железки. Перепроверяем.
  3. Проблема с кабелем. Заменяем
  4. Еще есть проблемы со скоростью порта и прочими разными, это все расписано…

Но… есть еще один вариант, про который нигде не написано… 

Если до этого arduino использовалась в других проектах и в нее уже прошит другой скетч… В новой схеме она может просто замыкаться уже назначенными на другое дело пинами =) 

Поэтому, для начала, просто попробуйте ее прошить, выдернув из макетки.. Если до этого она где-то использовалась и все работало — скорее всего поможет.

Проверено на собственной глупости =)

UPD: По просьбам из комментариев еще один частый вариант: помимо правильно указанной платы в Arduino IDE нужно проверить правильность указания процессора (просто ATmega или Old Bootloader)
Спасибо за комментарии и активность в теме =)

Offline

Зарегистрирован: 28.08.2013

Здравствуйте!

При попытке загрузить скетч в Arduino Uno rev3 вылезает следующая ошибка: avrdude: stk500_recv(): programmer is not responding

Для информации: os x 10.9.1 или windows vista, Arduino Uno Rev3. 

При подключении ардуино, комп распознает ее как положено: в устройствах USB стоит «Manufacturer: Arduino (www.arduino.cc)«. Заметил странную особеннрость, когда пытаюсь загрузить скетч видно что данные с компа отправляются на плату (лампочка Rx на arduino начинает моргать), а вот сама плата не отсылает данные на комп (лампочка Tx не моргает). Из этого я сделал предположение, что возможно сам программатор (Atmega16U2) работает, а вот бутлоадер в нем полетел. Попытался перепрошить бутлоадер на Atmega16U2 с помощью друой платы ардуино, но первая плата так и не заработала.   

Еще одна странность, немогу ввести ардуино в DFU. 

Раньше все работало как положено как на os x, так и на windows.

Есть какие нибудь мысли по поводу того как можно оживить ардуино? Перелопатил интернет в поисках решения, но ничего толкого так и не нашел.

PS. Сам чип Atmega328P-PU работает, лампочка питания и лампочка от 13ого пина горят. 

  • #1

АХТУНГ!
Вставка от модератора:
Подробное руководство по загрузке прошивки в Ардуино от Алекса Гайвера:

Прежде чем строчить сообщения, внимательно ознакомьтесь!!!

=================================================================================================

Arduino: 1.8.8 (Windows 7), Плата:»Arduino Nano, ATmega328P»

Скетч использует 14462 байт (47%) памяти устройства. Всего доступно 30720 байт.
Глобальные переменные используют 776 байт (37%) динамической памяти, оставляя 1272 байт для локальных переменных. Максимум: 2048 байт.
Неверная библиотека найдена в C:UsersДимаDocumentsArduinolibrariesconvert: нет заголовочных файлов (.h), найденных в C:UsersДимаDocumentsArduinolibrariesconvert
Неверная библиотека найдена в C:UsersДимаDocumentsArduinolibrariesexamples: нет заголовочных файлов (.h), найденных в C:UsersДимаDocumentsArduinolibrariesexamples
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x83
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x83
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x83
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x83
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x83
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x83
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x83
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x83
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x83
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x83
Проблема загрузки в плату. Помощь по загрузке: http://www.arduino.cc/en/Guide/Troubleshooting#upload .
Неверная библиотека найдена в C:UsersДимаDocumentsArduinolibrariesconvert: нет заголовочных файлов (.h), найденных в C:UsersДимаDocumentsArduinolibrariesconvert
Неверная библиотека найдена в C:UsersДимаDocumentsArduinolibrariesexamples: нет заголовочных файлов (.h), найденных в C:UsersДимаDocumentsArduinolibrariesexamples
Неверная библиотека найдена в C:UsersДимаDocumentsArduinolibrariesconvert: нет заголовочных файлов (.h), найденных в C:UsersДимаDocumentsArduinolibrariesconvert
Неверная библиотека найдена в C:UsersДимаDocumentsArduinolibrariesexamples: нет заголовочных файлов (.h), найденных в C:UsersДимаDocumentsArduinolibrariesexamples

Изменено: 19 Мар 2020

Wan-Derer


Devastator


  • #3

При загрузке скетча,выдает ошибку загрузки в плату — что делать? (пытаюсь собрать подсветку монитора)

Arduino: 1.8.8 (Windows 7), Плата:»Arduino Nano, ATmega328P»

In file included from C:AmbilightGyver_Ambilight_v1.2Gyver_Ambilight_v1.2.ino:26:0:

C:Program Files (x86)ArduinolibrariesFastLED-master/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.005

# pragma message «FastLED version 3.001.005»

^

Скетч использует 6000 байт (19%) памяти устройства. Всего доступно 30720 байт.
Глобальные переменные используют 577 байт (28%) динамической памяти, оставляя 1471 байт для локальных переменных. Максимум: 2048 байт.
avrdude: ser_open(): can’t open device «\.COM3»: Отказано в доступе.

Проблема загрузки в плату. Помощь по загрузке: http://www.arduino.cc/en/Guide/Troubleshooting#upload .

Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
«Показать подробный вывод во время компиляции»

Wan-Derer


  • #4

@Devastator, порт занят другой программой, возможно Ардулайт или как там её

Devastator


  • #5

Подскажите,что делать

Сменил порт,попытался снова загрузить скетч — Теперь выдало вот это:

Arduino: 1.8.8 (Windows 7), Плата:»Arduino Nano, ATmega328P»

In file included from C:AmbilightGyver_Ambilight_v1.2Gyver_Ambilight_v1.2.ino:26:0:

C:Program Files (x86)ArduinolibrariesFastLED-master/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.005

# pragma message «FastLED version 3.001.005»

^

Скетч использует 6000 байт (19%) памяти устройства. Всего доступно 30720 байт.
Глобальные переменные используют 577 байт (28%) динамической памяти, оставляя 1471 байт для локальных переменных. Максимум: 2048 байт.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Произошла ошибка при загрузке скетча

Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
«Показать подробный вывод во время компиляции»

Справился,в место Arduino: 1.8.8 поставил Arduino: 1.8.2

Kapitan Nemo


  • #8

Всем доброго времени суток.
Решил сделать систему автополива, собрал и стал загружать прогу на ардуино нано, а он мне вот такую ошибку.
Помогите пожалуйста :cry:

  • проблема.png

    162.2 KB
    Просмотры: 279

Wan-Derer


Kapitan Nemo


  • #10

Изменил, теперь только черные буквы и сверху надпись завершена. А дисплей по прежнему Синий, но после покрутил и теперь на синем фоне белые квадраты в две строчки. Энкодер ещё не ставил.
Что делать не знаю

Wan-Derer


Kapitan Nemo


  • #12

Спасибо, уже нашёл.
Сейчас пойду рыться в коде

  • #13

Привет! Пробую сделать цветомузыку по твоей схеме. Сперва при загрузке скетча вылезла такая ошибка:
Screenshot_2.png

Разобрался с ней через переключение процессора на версию Old Bootloader.
Но далее при компиляции прошивки выскакивают такие строки:

In file included from D:ColorMusic-masterfirmwarecolorMusic_v2.9colorMusic_v2.9.ino:200:0:

C:UsersProfessionalDocumentsArduinolibrariesFastLED/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008

# pragma message «FastLED version 3.001.008»
^

Скетч использует 20990 байт (68%) памяти устройства. Всего доступно 30720 байт.
Глобальные переменные используют 972 байт (47%) динамической памяти, оставляя 1076 байт для локальных переменных. Максимум: 2048 байт.

Это норм или снова что-то не в порядке?
Заранее спасибо!

Изменено: 1 Апр 2019

  • #14

1554746840191.png

Не могу понять почему не могу прошить , вроде драйвер 340 поставил

  • #16

@long, плату arduino nano выбрал?

да , поставил

Wan-Derer


  • #18

@long, не знаю. Я всегда драйвера качаю с сайтов производителей

  • #19

@long, не знаю. Я всегда драйвера качаю с сайтов производителей

а можешь скинуть сайт ?

  • #21

Кто-то сталкивался с проблемой

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xe0 ??

  • лол404.png

    175.9 KB
    Просмотры: 72

pavel lolkek


  • #22

Что делать ?
Arduino: 1.8.8 (Windows 7), Плата:»Arduino Nano, ATmega328P»

In file included from E:игры пашиARDUINOбиблиотекиColorMusic-masterfirmwarecolorMusic_v2.9colorMusic_v2.9.ino:200:0:

C:Program Files (x86)ArduinolibrariesFastLED-master/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008

# pragma message «FastLED version 3.001.008»

^

Скетч использует 20996 байт (68%) памяти устройства. Всего доступно 30720 байт.
Глобальные переменные используют 966 байт (47%) динамической памяти, оставляя 1082 байт для локальных переменных. Максимум: 2048 байт.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Произошла ошибка при загрузке скетча

Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
«Показать подробный вывод во время компиляции»

  • #23

У меня тоже самое, проект светомузыка от Алекса Гувера
In file included from C:ColorMusic-masterfirmwarecolorMusic_v2.10colorMusic_v2.10.ino:200:0: C:Program FilesArduinolibrariesFastLED-master/FastLED.h:17:21

Что делать,то?

Александр Симонов


  • #24

У меня тоже самое, проект светомузыка от Алекса Гувера
In file included from C:ColorMusic-masterfirmwarecolorMusic_v2.10colorMusic_v2.10.ino:200:0: C:Program FilesArduinolibrariesFastLED-master/FastLED.h:17:21

Что делать,то?

https://vk.com/topic-97877471_36099125

  • #25

In file included from C:ColorMusic-masterfirmwareOld versionscolorMusic_v2.9colorMusic_v2.9.ino:200:0:
C:Program FilesArduinolibrariesFastLED-master/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008
# pragma message «FastLED version 3.001.008»

Проект светомузыка Алекса.
Проекты другие без проблем заливаю а на этом проекте (pragma message «FastLED version 3.001.008»)
что делать то? Два часа бьюсь(((((

Ever stumbled across this error message when trying to upload a sketch?

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

avrdude: stk500_recv(): error message from Arduino IDE

Is this some kind of joke? Who is this mysterious AVR Dude, why is he so uncool, and — most importantly — what does he have against you trying to upload a sketch to your Arduino? It’s beyond frustrating.

In this quick lesson, you’ll learn how to banish the mysterious AVR dude to the dusty highways of the nether realms. Or, to be less poetic, you’ll learn how to get rid of this error so you can get back to uploading your sketch.

So who is this AVR dude, and why does the error happen?

AVRDude stands for AVR Downloader Uploader and is a utility used by the Arduino IDE. The utility’s main job is pretty straightforward — it allows you to load code onto your Arduino board.

So that’s who the dude is, but why does the error happen?

The avrdude: stk500_recv() error message is alerting you to a generic connection error between your computer and the Arduino. I wish I could keep it simple and tell you this error happens because of one single problem, but that would be too easy. This generic error can pop up for a host of reasons.

But don’t worry, I’ve got your back. In this lesson, I’m going to go through a “laundry list” of possible solutions. (Many thanks to “The Guy with The Hat” from the Arduino Stack Exchange for compiling this great list of fixes.) I’ll walk through each in detail, starting at the most common and easiest and moving on to more detailed troubleshooting tasks if those don’t work.

Here goes.

Let’s start with the easy stuff

Before we touch on some of the more elaborate and involved potential solutions, it’s smart to rule out all those obvious and small glitches.

  • Disconnect and reconnect the USB cable: I told you we’d start simple.
  • Press the reset button: If your Arduino board has a reset button on it, press it and see if you can now upload without the avrdude: stk500_recv() error.
  • Close and reopen the Arduino IDE: Giving the Arduino IDE a fresh start can fix a host of problems avrdude stk500_recv errors included.
  • Make sure you have the right Arduino board selected: In the Arduino IDE, go to Tools> Board, and select the Arduino board you’re using from the list.

select Arduino Board from Arduino IDE

  • Make sure you have the correct port selected: In the Arduino IDE, go to Tools>Port and select the port corresponding to your board. On a PC, it will start with COM. On a Mac, it should start with cu.usb.
    select Arduino Port from Arduino IDE

Useful tip: If you’re unsure of the correct port, take note of all the ports you have listed. Then disconnect your Arduino board from the USB cable and check the port menu again. The port now missing from the list is the port your Arduino was using. 

  • Remove connections to the RX and TX pins: The Receive (RX) and Transmit (TX) pins (pins 0 and 1) are used when you upload sketches to your Arduino board. Unplugging connections to those pins may banish the avrdude: stk500_recv() upload error.
  • Remove any shields: If you have an Arduino shield attached to your Arduino board, remove the shield and try uploading again. The shield may have a circuit interfering with the transmit and receive pins.

Still getting avrdude: stk500_recv() error?

If you’re still getting the avrdude: stk500_recv() error, all is not lost — not by a long shot. It’s time to dig into some real troubleshooting.

So what could be going wrong here? We know the problem could be at three possible locations: the USB cable, the Arduino Board, or your computer. We’ll use a process of elimination to figure out the point of failure.

  • Test the USB Cable: USB cables fail, and surprisingly often. Check to see if using a different USB cable gets rid of the avrdude: stk500_recv() error.
  • Test another Arduino board: If you have one handy, try uploading to another Arduino board. Did the avrdude: stk500_recv() error suddenly vanish? Your original board is the likely culprit.
  • Test a different computer: If you’ve ruled out your USB cable and Arduino board, try uploading your sketch to another computer with the Arduino IDE installed on it. If you can successfully upload a sketch to the other computer, the avrdude: stk500_recv() error probably originates at your computer.

Once you have some hard data on the point of failure, you can read one of the following three sections to hone in on resolving the avrdude: stk500_recv() error.

The USB cable is to blame!

Well, I’ll go right ahead and state the obvious solution. Use a different cable 🙂

My computer is the problem

Here are three fixes you can try.

  • Reinstall the Arduino IDE: Just go to the Arduino website, download the most recent version of the IDE and install it again. Don’t worry, this won’t affect your old sketches. They’ll still be stored in your sketchbook folder.
  • Reinstall drivers: If you’re still getting the avrdude: stk500_recv() error, you’ll need to check that your drivers are installed correctly. These should be installed automatically when you install the Arduino IDE, but you can always try installing them manually.
  • Check to see if you need different drivers: Some Arduino clones require special drivers. You should be able to download these drivers from the website of the company that makes the board. If you can’t, contact the company directly.

My Arduino board is causing the stk500_recv() error:

This is where things get a little dicey. It may be that your Arduino board is bricked  — electronics speak for broken in a manner that does not allow fixing. But try these steps before you throw it out and buy a new board:

  • Check that the microcontroller is seated properly: Some Arduino boards have a removable microcontroller chip — the Arduino UNO, for example. Check that it’s seated properly on the circuit board.
  • Burn a new bootloader: The bootloader is a program on your microcontroller that allows sketches to run. A corrupt bootloader can cause the stk500_recv() error. Try burning a new bootloader on the microcontroller.
  • Swap out a spare microcontroller: Got a spare microcontroller handy? If the kaput Arduino board has a removable microcontroller, you could always replace it with your backup microcontroller. You’ll have to load the microcontroller with the bootloader — as described in the previous step.

Have you banished the dude?

By the time you get here, you’ll hopefully have banished the AVR dude back to the shadowy chaos realm from whence he sprung. With any luck, you’ll never meet him again. But if you do, now you have some tricks up your sleeve to get rid of the avrdude: stk500_recv() error swiftly and efficiently.

If you’re still getting the error, please read the comments below. You may find the hidden clue you’ve been looking for. Drop us a line in the comments if you don’t — someone out there may have faced the same problem.

And, of course, if you found a different solution, please leave a comment — it may help someone else.

Because sometimes evil dude banishment takes a village.

Понравилась статья? Поделить с друзьями:
  • Ошибка аргументы массива в функции countifs имеют различные размеры
  • Ошибка активация map cooling бмв
  • Ошибка активации сим карты xiaomi
  • Ошибка активации рдр 2 стим
  • Ошибка активации рдр 2 пиратка