Crius AIOP ошибка при прошивке

Sergo
Offline
Зарегистрирован: 18.05.2013

Приветствую!

В ходе прошивки платы crius all in one pro v1.0  (Микроконтроллер - Atmel- ATMEGA2560) прошивкой megapirateng 2.8 r3 (port COM4, плата Arduino Mega 2560 or Mega ADK, программатор Arduino as ISP)

 

Размер скетча в двоичном коде: 165 086 байт (из 258 048 байт максимум)

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_getsync(): timeout communicating with programmer
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

Кто-то советовал в board.txt поменять скорость порта на "writen", но не помогло.

Есть идеи, в какую сторону смотреть?

maksim
Offline
Зарегистрирован: 12.02.2012

Поставьте галочку Файл -> Настройки -> Показывать подробный вывод при: загрузке, нажмите в Файл -> Загрузить с помощью программатора и выложите сюда лог.

Sergo
Offline
Зарегистрирован: 18.05.2013

 

Начало лога не сохраняется. Там, где многоточие - идут аналогичные строки - удалил их, что бы не раздувать страницу на километр:
 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: Send: . [1b] . [01] . [00] . [02] . [0e] . [03] . [92] . [87] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
.......................................................................................................................
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_command(): failed miserably to execute command 0x03
avrdude: stk500v2_getparm(): failed to get parameter 0x92
         Hardware Version: 255
         Firmware Version Master : 255.255
avrdude: Send: . [1b] . [01] . [00] . [02] . [0e] . [03] . [94] . [81] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
.......................................................................................................................
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_command(): failed miserably to execute command 0x03
avrdude: stk500v2_getparm(): failed to get parameter 0x94
         Vtarget         : 25.5 V
         SCK period      : 105.3 us
 
avrdude: Send: . [1b] . [01] . [00] . [0c] . [0e] . [10] . [c8] d [64] . [19]   [20] . [00] S [53] . [03] . [ac] S [53] . [00] . [00] 2 [32] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
.......................................................................................................................
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
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: Send: . [1b] . [01] . [00] . [03] . [0e] . [11] . [01] . [01] . [06] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
.......................................................................................................................
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
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
 
avrdude done.  Thank you.
maksim
Offline
Зарегистрирован: 12.02.2012

К сожалению именно начало и нужно. Так как именно там прописано с какими параметрами запускается avrdude.

Sergo
Offline
Зарегистрирован: 18.05.2013

Удалось скопировать пару частей из начала компиляции. Они довольно объемные...

Выложу пока первую часть - если ее не хватит добавлю вторую:

windows\arduino-1.0.1\libraries\AP_Mount -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\AP_Airspeed -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\memcheck -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\GCS_MAVLink -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\SPI -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\DataFlash -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\AP_Declination -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\AP_Limits C:\Users\YELLOW~1\AppData\Local\Temp\build5957918124965065322.tmp\ArduCopter.cpp -o C:\Users\YELLOW~1\AppData\Local\Temp\build5957918124965065322.tmp\ArduCopter.cpp.o 
ArduCopter.cpp:10220:1: warning: "LED_OFF" redefined
In file included from ArduCopter.cpp:111:
/config.h:221:1: warning: this is the location of the previous definition
In file included from C:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\AP_Compass/AP_Compass.h:6,
                 from ArduCopter.cpp:77:
C:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\AP_Compass/AP_Compass_HMC5843_Pirates.h: In member function 'virtual bool AP_Compass_HMC5843_Pirates::init()':
C:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\AP_Compass/AP_Compass_HMC5843_Pirates.h:66: warning: no return statement in function returning non-void
ArduCopter.cpp: In function 'void get_stabilize_yaw(int32_t)':
ArduCopter.cpp:2959: warning: unused variable 'output'
ArduCopter.cpp: In function 'void sq_led_heartbeat()':
ArduCopter.cpp:10343: warning: comparison between signed and unsigned integer expressions
ArduCopter.cpp:10344: warning: comparison between signed and unsigned integer expressions
ArduCopter.cpp:10345: warning: comparison between signed and unsigned integer expressions
ArduCopter.cpp:10346: warning: comparison between signed and unsigned integer expressions

и начало второго куска кода:

C:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\variants\mega -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\FastSerial -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\AP_Common -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\AP_Menu -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\Arduino_Mega_ISR_Registry -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\APM_RC -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\AP_GPS -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\I2C -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\AP_AnalogSource -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\AP_Baro -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\AP_Compass -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\libraries\AP_Math -IC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-

 

maksim
Offline
Зарегистрирован: 12.02.2012

Это все не то, потому что вы зачем-то поставили еще галочку при компиляции. Сделайте как написано в сообщении #1.

Sergo
Offline
Зарегистрирован: 18.05.2013

Бес попутал )

Размер скетча в двоичном коде: 165 086 байт (из 258 048 байт максимум)
C:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\hardware/tools/avr/bin/avrdude -CC:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P\\.\COM4 -b115200 -D -Uflash:w:C:\Users\YELLOW~1\AppData\Local\Temp\build5957918124965065322.tmp\ArduCopter.cpp.hex:i 

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

         System wide configuration file is "C:\Users\Yellow Man\Desktop\Quadro\arduino-1.0.1-windows\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM4
         Using Programmer              : stk500v2
         Overriding Baud Rate          : 115200
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
         AVR Part                      : ATMEGA2560
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    10     8    0 no       4096    8      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65    10   256    0 yes    262144  256   1024  4500  4500 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel STK500 Version 2.x firmware
         Programmer Model: Unknown
avrdude: Send: . [1b] . [01] . [00] . [02] . [0e] . [03] . [90] . [85] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 

 

maksim
Offline
Зарегистрирован: 12.02.2012

  avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P\\.\COM4 -b115200 -D -Uflash:w:

А программатор вы какой выбрали? 

Если выбрали программатор ArduinoISP и нажали именно Загрузить с помощью программатора, то должно быть так:
  avrdude.conf -v -v -v -v -patmega2560 -cstk500v1 -P\\.\COM4 -b19200 -Uflash:w:

Sergo
Offline
Зарегистрирован: 18.05.2013

maksim, спасибо - продвигаюсь. До этого загружал через пиктограмму со стрелкой. 

Может подскажите, с чем может быть связано это:

        Using Port                    : \\.\COM4
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Recv: 
avrdude: stk500_getsync(): not in sync: resp=0x00

К сожалению пока не совсем ясно, о чем пишут уже столкнувшиеся с этой проблемой (

maksim
Offline
Зарегистрирован: 12.02.2012

С тем что у вас сбрасывается программатор вместо программируемого МК. Какой дуиной шьете? Как подключаете? 

Пользуюсь вот таким самодельным проводком ,ресет программатора подтянут ста омами к питанию, делает программатор практически из любой дуины:

        

Sergo
Offline
Зарегистрирован: 18.05.2013

Шью полетный контроллер на arduino 2560 crius all in one pro v 1, через usb-microusb.

Maksim, я правильно понял. что без второй дуины эту не оживить?

maksim
Offline
Зарегистрирован: 12.02.2012

Если он прошивается по USB через UART (ардуиносовместимый), то естественно нет.

Sergo
Offline
Зарегистрирован: 18.05.2013

На самой плате установлен преобразователь интерфейса USB в последовательный - FTDI FT232RQ.

Вы имеете ввиду этот программатор?

 

maksim
Offline
Зарегистрирован: 12.02.2012

Это не программатор, а тоже прелбразователь и им нельзя прошить бут. Теоретически можно прошить бут FT232.ю но если сможете вывести соответствующие выводы - Bit-Bang программатор