Stk500 ошибка ардуино

Эта ошибка возникает, когда компонент Arduino IDE не может связаться с платой. Причины могут быть следующие:

Физическая проблема с подключением

  1. Выключите и включите плату. Если контакт был плохой, это поможет исправить ситуацию.

  2. Замените USB-кабель. Иногда попадаются некачественные провода, где нет жил для передачи данных.

  3. Убедитесь, что провод не болтается в разъёме, контакт есть, на плату поступает питание.

Неправильные настройки в Arduino IDE

  1. Убедитесь, что выбрана правильная модель платы в Tools → Boards.

  2. Убедитесь, что выбран правильный порт в Tools → Port. Если вариантов несколько, попробуйте другие.

  3. Попробуйте другие USB-порты: иногда один внутренний USB-концентратор компьютера настроен неверно, а другой нормально. Также можно попробовать подключить плату через внешний USB-расширитель.

  4. Аккурат в момент перед прошивкой, или одновременно, или на полсекунды позже попробуйте нажать Reset на плате. Иногда по USB сброс не работает, и приходится сбрасывать плату вручную.

  • Откройте диспетчер устройств.

  • Переподключите плату.

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

  • В Arduino IDE выбирайте тот номер порта, который увидели в предыдущем пункте.

  • Проверьте, что у вас нет других открытых программ, которые используют COM-порт. Например, CURA, Serial Projector или монитор порта.

Проблема с загрузчиком на плате

Если предыдущие пункты не помогли, то проблема может быть с загрузчиком. Эта особая подпрограмма, которая позволяет загружать прошивку по USB без использования особых ISP-программаторов. Она работает первые секунды при включении платы. Если эта программа стирается или повреждается, то загрузчик надо перезаписать.

Для прошивки загрузчика есть специальная инструкция.

Понять, что сейчас работает загрузчик, можно по плавному миганию светодиода L на платах Iskra Neo и Arduino Leonardo. На них проблема поломанного загрузчика особенно актуальна, так как чип подключается к контактам USB напрямую, без преобразователя USB-UART.

I have a Arduino Nano (Sainsmart) that I’m trying to upload a sketch to. Under the Arduino IDE, the device selected was Arduino Nano w/ ATmega328.

However uploading the sketch gives me the error

avrdude: stk500_recv(): programmer is not responding

I tried both USB ports (/dev/tty.usbserial & /dev/cu.usbserial) but the same error persist. The Arduino is connected to a Macbook Air via the USB cable, and the PWR LED indicator light on the Arduino is turned on and the L indicator LED blinks. There was no problem uploading to a Arduino Uno.

Retried after installing the latest FTDI drivers (MAC OSX, x64, v2.2.18, FTDIUSBSerialDriver_10_4_10_5_10_6_10_7.mpkg) from http://www.ftdichip.com/Drivers/VCP.htm. However that did not help.

What could have gone wrong?

asked Mar 18, 2014 at 21:01

Nyxynyx's user avatar

NyxynyxNyxynyx

1,3794 gold badges20 silver badges25 bronze badges

0

This error message basically shows up for any communication problem, so by itself, it is not all that instructive. The Arduino Nano is supposed to have auto-reset, but maybe your clone does not? In that case, you’d have to press the reset key on the board just before starting an upload.

answered Mar 18, 2014 at 22:05

microtherion's user avatar

microtherionmicrotherion

1,5028 silver badges19 bronze badges

4

Know this is old but I ran onto it during my search for Nano(V3)’s not uploading so thought might help someone else. Problem is the bootloader — Arduino IDE BUT I Found an easy solution (right under my nose).

I realized that my nano’s had been uploading just fine then I had finally updated the Arduino AVR Boards from 1.6.20 to 1.6.21. I didn’t think there was any problems because it still showed my Nano and ATmega328 etc in the board manager after the change.

But the new boards manager has a new ATmega328 processor choice for the Nano. I changed processor: In the Arduino IDE select TOOLS > PROCESSOR > pulldown menu from ATmega328P to "ATmega328P (Old Bootloader)".

Since then, I have uploaded many programs to several different Nano’s V3 (Prolofic interace Chipset) without issue.

Chris Stratton's user avatar

answered Apr 19, 2018 at 14:49

Goofy Brained's user avatar

7

I was having the same problem and got the same error message. Turns out these boards don’t come with a bootloader preinstalled. If you have some jumper wires and another working arduino you can use this tutorial to install the bootloader and it should work great, mine did at least! :)

answered May 14, 2015 at 23:57

electriccello's user avatar

Having a similar issue with my Sainsmart Nano.

Under Preferences check «Show verbose output during [x] upload, then when uploading, you should get a red trace like this:

avrdude: Version 5.11, compiled on Sep  2 2011 at 18:52:52
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/johannes/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/tty.usbserial-A403MRTP
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 

You’ll notice a little «pause» just before the first line of avrdude: Send: 0 [30] [20]. Try uploading again and have you finger ready on the physical reset button of your Nano. Just the moment before the first avrdude: ... appears, press the reset button.

When you succeed, you’ll see the screen filling with all sort of gibberish, and ending something like this after a few seconds:

[78] . [00] S [53] h [68] o [6f] u [75] l [6c] d [64]   [20] b [62] e [65]   [20] 0 [30] x [78] 4 [34] 9 [39] D [44] 4 [34] . [00] . [01] . [00] . [00] . [00] . [02] . [00] . [03] . [00] . [04] . [00] . [00] . [00] . [00] . [00] . [e6] . [06] . [b5] . [06] n [6e] . [06] w [77] . [06] . [8c] . [06] . [9d] . [06] . [00] . [00] . [00] . [00] . [02] . [0d] . [aa] . [0d] . [95] . [0c] . [c9] . [0c] . [a9] . [0c] . [f2] . [0c] . [00] 
avrdude: Recv: . [10] 
# | 100% 3.71s

avrdude: verifying ...
avrdude: 8824 bytes of flash verified
avrdude: Send: Q [51]   [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [10] 

avrdude done.  Thank you.

answered Feb 19, 2015 at 12:51

kontur's user avatar

konturkontur

1731 silver badge8 bronze badges

1

I recently had the same issue with 3 Nano boards I just purchased from Amazon. I can confirm that the suggested fix (changing to «old bootloader») solved my problem.

I think the main problem is the upload speed. The «old bootloader» version successfully uploads at 57600, but the default «new» version tries to upload at 115200 and fails.

sa_leinad's user avatar

sa_leinad

3,1581 gold badge21 silver badges50 bronze badges

answered May 8, 2018 at 1:54

Curtg's user avatar

CurtgCurtg

572 bronze badges

2

Did you remember to tell the IDE that the board type is a Nano?

Tools -> Board => Arduino Nano ...

This gets me every time I swap between my Nano and Uno.

answered Jun 25, 2014 at 8:00

Kingsley's user avatar

KingsleyKingsley

7735 silver badges12 bronze badges

I also had that error message. I think there are many possible causes, so I haste to specify my special case.

I have a hackintosh with OS X Yosemite 10.10.2, Arduino software 1.0.6 and Funduino UNO. Uploading the example for Serial.write() succeeded the first time. Thereafter most uploads failed. Even when the upload succeeded the serial monitor would not always show output.

This seemed to me to be due to miscommunication on the USB port. I had to repeatedly reset the funduino, unplug and replug the USB cable or even restart the system. When replugging the USB cable sometimes my system would freeze.

By googling I found a solution to «Inserting USB device causes Mavericks 10.9.1 to freeze».
Answer no 12 on tonymacx86.com basically instructs you to remove GenericUSBXHCI.kext from /System/Library/Extensions.

I am happy to report that after removing this kext I have no problems uploading the example and monitoring the output. Because I don’t need to replug the USB cable I don’t know whether this solves my system freeze. I’m not even sure it was a system freeze, because my system may only have become unresponsive to my USB keyboard and mouse.

answered Feb 7, 2015 at 23:35

Jan E. Jonker's user avatar

Had same issue and solution was as follows:

  • identified my arduino as CH340/ATmega168P (written on PCB)
  • went to IDE and picked from list not UNO but «Arduino Pro or Pro Mini»
  • when this option is selected new menu «Processor» selection is available (just under Board selection)
  • selected my processor ATmega168P there and upload worked like a charm!

sa_leinad's user avatar

sa_leinad

3,1581 gold badge21 silver badges50 bronze badges

answered Jan 28, 2017 at 20:52

Radovan Rodak 's user avatar

1

The Arduino IDE version 1.8.5 gave the same error every time I tried to connect it to my OSEPP Nano. I tried with multiple nano boards with different versions of the IDE. I had the board set to «Arduino Nano».

The solution was: Instead of Nano choose Arduino/Genuino Uno. This worked for me.

JShorthouse's user avatar

answered Dec 3, 2017 at 21:05

JTK's user avatar

If this doesn’t work you will have to use spi to program the nano. You’ll need to look up the connection and use a uno since it has a serial chip at16u2 with a driver that recognizes all atmel products. After connections setting uno as a programmer by flashing the uno as isp set the programmer as Arduino as isp and flash the chip. Double check. The benefit is it is less error prone than uart and has better timing but is a hassle to wire up. Good Luck

answered Dec 10, 2017 at 22:59

JKing's user avatar

That problem, ocurred to me when I upgraded the Arduino IDE. I solved it by changing the processor to «old»

Tools->Processor->»ATmega328P (old bootloader)»
thanks!!!!

answered May 2, 2018 at 12:14

user3739283's user avatar

1

Ok. I had the same programmer is not responding error on Arduino Nano on Atmel MEGA168PA, USB chip: CH340G. Macbook Pro under macOS 10.14.2.

It hand Blink example installed and the port wasn’t visible in the list.

I was trying to figured out, whats wrong and connected my Arduino Due through the programming port. After 2 attempts the sketch was uploaded… Then I connected the Nano back, the port was visible this time (actually two of them: /dev/cu.wchusbserial14120 and /dev/cu.usbserial-14120) and guess what, the upload had been successful!

Magic!

answered Jan 10, 2019 at 17:25

kelin's user avatar

kelinkelin

1471 silver badge14 bronze badges

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.

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

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

Прошиваем….

Ооопс!

avrdude: stk500_recv(): programmer is not responding

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

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

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

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

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

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

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

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

Rouslan пишет:

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

При попытке загрузить скетч в 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ого пина горят. 

Понравилась статья? Поделить с друзьями:
  • Steam код ошибки 105
  • Steering wheel electronics ошибка
  • Still ошибка d5043
  • Steam vr ошибка 436
  • Still rx20 коды ошибок