Timeout communicating with programmer произошла ошибка при загрузке скетча

Offline

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

Всем здавствуйте! Купил себе Freaduino mega2560, с чипом atmega2560 16AU(Идентичная arduino mega). Поставил Arduino IDE v.1.0.5. При подключении определяется как USB Serial Port. При попытке залить скетч Blinking в консоли следующие ошибки:

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

При этом диоды при прошивке ведут себя следующим образом: http://www.youtube.com/watch?v=jkfoZ2HT71c
А при включении вот так: http://www.youtube.com/watch?v=QaRjuVi6UA4

Пробовал:
1) Установить скорость порта 115200
2) Установить драйвера для ft232rl с сайта FTDI
3) Попробовать другой кабель
4) Подключиться через putty и понажимать кнопки, на плате увидел мигание диода TX.
5) Нажимать кнопку reset перед заливкой
6) Залить другой скетч из стандартных
7) В файле boards.txt менять протокол прошивки на wiring
Но все попытки тщетны(

Вопросы:
1) Заливают ли с завода загрузчик или мне это самому нужно делать?
2) Адекватно ли ведет себе ардуина при включении и прошивке, судя по диодам?
3) Есть возможность залить загрузчик заново, через AVR910, но не знаю что писать в avrdude в качестве параметров(фьюзы и пр.)
4) ПОЧЕМУ НЕ РАБОТАЕТ?!?!?!)))
5) Если нужно прошить загрузчик, нужно ли прошивать EEPROM и прочее? Если нужно, то как?)

Фух, вроде закончил) Не бейте, если что-то слишком по нубовски написал, т.к. опыта с ардуинами еще не было, но с программированием атмелов для других нужд был)

Страница 1 из 2

  1. Прошу не бейте ногами.
    Тема заезженная, но прочтение других веток мне не помогло…
    Ардуино мега , L диод горит и не мигает , rx tx диоды не горят , прошить бутлоадер не удается,
    пишет

    avrdude: stk500_getsync(): not in sync: resp=0x00
     

    а при загрузке скетча пишет

    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_command(): failed miserably to execute command 0x10
    avrdude: initialization failed, rc=-1
            Double check connections and try again, or use -F to override
            this check.

     
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_command(): failed miserably to execute command 0x11
    avrdude: stk500v2_disable(): failed to leave programming mode

    При соеднении rx и tx и отправке чего-либо в консоль отправляет то же самое.
    Кто-нибудь сталиквался с таким?


  2. nailxx

    nailxx
    Официальный Нерд
    Администратор

    Хм, хм. Что-то ATmega16U2 между USB и основным микроконтроллером не отзывается. Другой кабель не помогает?

  3. Нет,у меня все спокойно работало , но все лето я его не использовал и вуаля.
    Теперь при загрузке скетча иногда мигает ежесекундно rx диод.


  4. nailxx

    nailxx
    Официальный Нерд
    Администратор

    Дык попробовать другой кабель всё равно не помешает. Если не поможет, можно попробовать ресетнуть прошивку на ATmega16U2. Знаю несколько случаев, когда это спасало.

  5. Перепрошил atmega16u2 но проблема не решилась,а вот прошить atmega2560 не удается даже теперь

    avrdude: stk500_getsync(): not in sync: resp=0x00

  6. nailxx

    nailxx
    Официальный Нерд
    Администратор

    Хм. Последнее подозрение на bootloader на atmega2560. Пробовали делать Tools -> Burn Bootloader?

  7. Да,вот что пишет

    avrdude: stk500_getsync(): not in sync: resp=0x00

  8. nailxx

    nailxx
    Официальный Нерд
    Администратор

    Правильно ли я понимаю, что всё следующее справедливо:

    • У вас официальная Arduino Mega 2560 Rev3
    • В Tools -> Board стоит «Arduino Mega 2560 or Mega ADK»
    • Вы пользуетесь Arduino IDE версии 1.0 или 1.0.1 или 1.0.2

  9. nailxx

    nailxx
    Официальный Нерд
    Администратор

    Тэээкс. А нету ли у вас ICSP программатора или другой Arduino, которая бы исполнила его роль? Чтобы попробовать прошить чип вообще мимо USB. Хочется понять какой из чипов проблемный.

  10. Нет,нету,а разве бы ардуина не перепосылала сигнал в мониторе порта если бы главный чип работал(она перепосылает).


  11. nailxx

    nailxx
    Официальный Нерд
    Администратор

    Эмм… не понял значение высказывания про перепосылание сигнала. Намекните, какого именно сигнала?

  12. Наверное имеется ввиду замыкание пинов 0 и 1, т.е. TX и RX от UART. В этом случае входной мост USB-UART видимо все же жив.

  13. Да,я именно эти пины использовал,а как проверить работоспособность atmega2560 без программатора желательно?


  14. nailxx

    nailxx
    Официальный Нерд
    Администратор

    Можно попробовать прошеить ещё через внешний USB-TTL преобразователь (aka USB-serial converter)

  15. Добрый день. Столкнулся с такой же проблемой, если Вам удалось найти решение, прошу Вас подсказать


  16. nailxx

    nailxx
    Официальный Нерд
    Администратор

    У вас сразу так плата себя вела, или изначально всё было хорошо, а потом перестала шиться?

  17. может у вас просто rx и/или tx еще к чемуто подключены, вот и не штьется скетч?

  18. Возможно, это не имеет отношения к вашей проблеме. У меня само собой иногда перестает загружаться скетч в ардуину. Сообщение что-то вроде «не могу соединиться на порте COMх». Причем кнопочка Резет тоже не помогает. Помогает только обесточить полностью платку и подсоединить снова.
    Скажем так: на 20 загрузок скетчей в ардуинку, мне приходится разок её так «передёргивать». Может и вам поможет переподключение платки (у вас же по УСБ питание идет?)

  19. Питание проверял, все норм. При подключении USB, индикаторы на плате так же показывают, что все норм

Страница 1 из 2

Nicolayka

Идет загрузка
Загрузка

13.04.2017

6220

При попытке загрузки прошивки Marlin

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_getsync(): timeout communicating with programmer

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

Timeout communicating with programmer

Ответы на вопросы

Популярные вопросы

Принтер стал печатать вверх)

klensis

Идет загрузка
Загрузка

02.06.2023

1603

Поставил на ночь печатать детали на весь стол, принтер Creality Ender-3, пластик PET-G от 78125. Параметры 235/70 гр., скорость печати 70, откат 60*6м…

Про конструкцию

Unimaro

Идет загрузка
Загрузка

28.05.2023

301

Как бы вы выполнили Т-образное содинение тридцатого профиля под 60 градусов?

Программа для 3D проектирования

Alex-S

Идет загрузка
Загрузка

22.02.2018

21074

Понимаю, что тема 100500 раз обсуждалась, но не удалось нигде найти обобщающей информации, в основном все в одной куче советуется.

Пр…

Читайте в блогах

When I try to upload I get this error. I cannot upload the program into my Arduino Mega ADK board. I tried putting the drivers agiain too, but it does not work.

avrdude: stk500v2_getsync(): timeout communicating with programmer

Is it the problem with the hardware or the system?
Please help me. Thank you :)

dda's user avatar

dda

1,5531 gold badge12 silver badges17 bronze badges

asked Jul 2, 2015 at 5:54

lilanka's user avatar

1

I get this problem sometimes with some of my boards. I usually solve the problem following these steps:

  • Set the compiler on debug/verbose mode to see what’s happening
  • Launch compilation/upload
  • When the compile phase is done, and the upload process is about to start, press the reset button on the board

Usually that takes care of the problem.

answered Jul 2, 2015 at 11:12

dda's user avatar

ddadda

1,5531 gold badge12 silver badges17 bronze badges

What @dda says in his answer are good points.

Removing the board USB for a few seconds, then re-plugging and re-selecting the COM port in the IDE usually fixes it. Sometimes when you un-plug and re-plug the board it changes COM ports.

Also if you have a short-circuit wired to your arduino sometimes it becomes non-responsive in this manner.

answered Jan 28, 2016 at 23:42

Kingsley's user avatar

KingsleyKingsley

7735 silver badges12 bronze badges

To my humble understanding, this error arises in different scenarios:

  1. you have selected the wrong port or you haven’t at all. go to tools > ports and select the com port with your Arduino connected to.

  2. you have selected the wrong board. go to tools > board and look for the right board.

  3. Do you have one of these Arduino replicas or you don’t have the boot-loader installed on the microcontroller? I don’t know the solution to this! if you know please edit my post and add the instructions.

  4. (windows only) you don’t have the right drivers installed. you need to update them manually.

  5. sometimes when you have wires connected to the board this happens. you need to separate the board from any breadboard or wires you have installed and try uploading again. It seems pins 0 (RX) and 1 (TX), which can be used for serial communication, are problematic and better to be free while uploading the code.

  6. Sometimes it happens randomly for no specific reason!

There are all kinds of solutions all over the internet, but sometimes hard to tell the difference between magic! Maybe the Arduino team should think of better compiler errors to help users differentiate between these different causes.

The same problem happened to me and none of the solutions above worked. What happened was that I was using an Arduino UNO and everything was fine, but when I bought an Arduino Mega 2560, no matter what sketch I tried to upload I got the error:

avrdude: stk500v2_ReceiveMessage(): timeout

And it was just on one of my windows computers and the other one was just ok out of the box.

Solution:

What solved my problem was to go to tools > boards > Boards Manager... and then on the top left of the opened windows select updatable in the Type section. Then select the items in the list and press update on the right.

I’m not sure if this will solve everyone’s problem, but it at least solved mine.

Понравилась статья? Поделить с друзьями:
  • Timed out waiting for packet header ошибка
  • Time to live exceeded ping ошибка
  • Time princess код ошибки 111902
  • Tiledatalayer database edb log ошибка 4001
  • Tiled texture cache set to 4000 mb ошибка