Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Arduino avrdude:stk500v2_ReceiveMessage():超时,接收指示灯不闪烁_Arduino - Fatal编程技术网

Arduino avrdude:stk500v2_ReceiveMessage():超时,接收指示灯不闪烁

Arduino avrdude:stk500v2_ReceiveMessage():超时,接收指示灯不闪烁,arduino,Arduino,我无法使用arduino IDE和USB电缆将任何程序上载到我的arduino 当我尝试时,它会显示avrdude:stk500v2\u ReceiveMessage():timeout 我搜索了所有的网页,看到了一些问题,比如当我试图上传一个程序时,我的arduino led灯没有闪烁 我用我的RasberryPi和arvdude制作了一些东西来再次刷新引导加载程序 我正在使用以下命令: sudo avrdude -p atmega2560 -C ~/avrdude_gpio.conf -c

我无法使用arduino IDE和USB电缆将任何程序上载到我的arduino

当我尝试时,它会显示
avrdude:stk500v2\u ReceiveMessage():timeout

我搜索了所有的网页,看到了一些问题,比如当我试图上传一个程序时,我的arduino led灯没有闪烁

我用我的RasberryPi和arvdude制作了一些东西来再次刷新引导加载程序

我正在使用以下命令:

sudo avrdude -p atmega2560 -C ~/avrdude_gpio.conf -c pi_1 -v -U flash:w:stk500boot_v2_mega2560.hex:i
以下是我尝试的结果:

avrdude: Version 6.1, compiled on Jul  7 2015 at 10:29:47
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/pi/avrdude_gpio.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : unknown
         Using Programmer              : pi_1
         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
           flash         65    10   256    0 yes    262144  256   1024  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : linuxgpio
         Description     : Use the Linux sysfs interface to bitbang GPIO lines
         Pin assignment  : /sys/class/gpio/gpio{n}
           RESET   =  19
           SCK     =  26
           MOSI    =  20
           MISO    =  16

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9801
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FD
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "stk500boot_v2_mega2560.hex"
avrdude: writing flash (261406 bytes):

Writing | ################################################## | 100% 6.24s

avrdude: 261406 bytes of flash written
avrdude: verifying flash memory against stk500boot_v2_mega2560.hex:
avrdude: load data flash data from input file stk500boot_v2_mega2560.hex:
avrdude: input file stk500boot_v2_mega2560.hex contains 261406 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 11.71s

avrdude: verifying ...
avrdude: 261406 bytes of flash verified

avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FD
avrdude: safemode: Fuses OK (E:FD, H:D8, L:FF)

avrdude done.  Thank you.
这一切似乎都很好,但当我将它重新连接到我的计算机(在Linux上)时,我无法上传任何程序

已正确检测到该板,如/dev/ttyACM0。当我从工具菜单获取线路板信息时,这里是输出

BN: Arduino/Genuino Mega or Mega 2560
VID: 2341
PID: 0042
SN: 754393236353518131F2

我做错了什么?

对于此类问题,我建议您发邮件到,您更有可能得到快速回复。@PatrickTrentin好的,我试试,谢谢