注释
你好, |
@RichPiet:确保在工具下拉菜单中选择正确的 Arduino 板类型。如果这不起作用,我发现重新刻录引导加载程序可以解决这样的奇怪问题。只需在网络上搜索 Arduino 作为 ISP 即可使用另一个 Arduino 来刻录它。 |
我借了一个朋友 Uno R3 并且它可以工作,所以我假设引导加载程序可能已经过时了。我将尝试重新刻录引导加载程序。谢谢你的建议。 |
这里有同样的问题,使用 Arduino Uno SMD,可以上传 hex 文件直到 v0_9g,之后得到相同的消息。我已经在多台计算机上尝试过,它们有两个不同的 Unos,来自不同操作系统 linux 和 windows 上的不同 IDE 版本。 让我在这里提供一些细节,linux 和 windows 的相同输出这不是问题,当前最新版本的 IDE v1.6.5 和最新版本的 grubl 9.0j,用于编译和上传的详细输出。 我很适合编译: ....blablabla...
Sketch uses 28,790 bytes (89%) of program storage space. Maximum is 32,256 bytes.
Global variables use 1,485 bytes (72%) of dynamic memory, leaving 563 bytes for local variables. Maximum is 2,048 bytes.
对于上传: avrdude: Version 6.0.1, compiled on Apr 14 2015 at 19:04:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/home/blabla/prog/arduino-1.6.5/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/home/blabla/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM0
Using Programmer : arduino
Overriding Baud Rate : 115200
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
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 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 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 : Arduino
Description : Arduino
Hardware Version: 3
Firmware Version: 3.3
Vtarget : 0.3 V
Varef : 0.3 V
Oscillator : 28.800 kHz
SCK period : 3.3 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: reading input file "/tmp/build8057143610859504204.tmp/grblUpload.cpp.hex"
avrdude: writing flash (28790 bytes):
Writing | #################################################
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x0d
# | 100% 5.79s
avrdude: stk500_cmd(): programmer is out of sync
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
它总是在结束上传之前失败并出现此协议错误。 有人已经尝试过 chamnit 所说的重新烧录引导加载程序并且之后可以成功上传吗? 你们开发人员是否也在 git 中标记了版本,以便我可以比较并检查这是否是大小或功能问题? 感谢这个伟大的项目 |
我在 Arduino Pro Mini 上工作,也是 ATmega328p,波特率为 57600,设备被视为 USB0 而不是 ttyACM0,电压和其他小东西不同,其他值似乎相同,也许传输软和硬件是重点,这里是记录的输出: avrdude: Version 6.0.1, compiled on Apr 14 2015 at 19:04:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/home/smarty/prog/arduino-1.6.5/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/home/smarty/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyUSB0
Using Programmer : arduino
Overriding Baud Rate : 57600
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
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 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 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 : Arduino
Description : Arduino
Hardware Version: 2
Firmware Version: 1.16
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: reading input file "/tmp/build8057143610859504204.tmp/grblUpload.cpp.hex"
avrdude: writing flash (28790 bytes):
Writing | ################################################## | 100% 9.15s
avrdude: 28790 bytes of flash written
avrdude: verifying flash memory against /tmp/build8057143610859504204.tmp/grblUpload.cpp.hex:
avrdude: load data flash data from input file /tmp/build8057143610859504204.tmp/grblUpload.cpp.hex:
avrdude: input file /tmp/build8057143610859504204.tmp/grblUpload.cpp.hex contains 28790 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 7.18s
avrdude: verifying ...
avrdude: 28790 bytes of flash verified
avrdude done. Thank you.
问题可能与 grbl 项目无关,但与 ide 和 ATmega328p 之间的传输层有关,如果有人有解释,我们将非常欢迎。 比特和字节 |
你好,我们又见面了, _问题解决了 _ 在按照 chamnit 所说的进行操作后,以另一个 arduino 作为 ISP _烧录引导加载程序,烧录的版本不一样,现在我可以将最新的 grbl 版本卸载到我的 Arduino Uno SMD。 这是记录的输出,请注意现在固件版本是 4.4 而不是 3.3 : Programmer Type : Arduino
Description : Arduino
Hardware Version: 3
Firmware Version: 4.4
Vtarget : 0.3 V
Varef : 0.3 V
Oscillator : 28.800 kHz
SCK period : 3.3 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: reading input file "/tmp/build5100055099816542061.tmp/grblUpload.cpp.hex"
avrdude: writing flash (28790 bytes):
Writing | ################################################## | 100% 5.35s
avrdude: 28790 bytes of flash written
avrdude: verifying flash memory against /tmp/build5100055099816542061.tmp/grblUpload.cpp.hex:
avrdude: load data flash data from input file /tmp/build5100055099816542061.tmp/grblUpload.cpp.hex:
avrdude: input file /tmp/build5100055099816542061.tmp/grblUpload.cpp.hex contains 28790 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 4.15s
avrdude: verifying ...
avrdude: 28790 bytes of flash verified
avrdude done. Thank you.
|
你好。我试过重新加载 GRBL 并重新下载然后上传,但我一直遇到同样的错误。我已经尝试过新版本的 Arduino ide。我现在使用 1.6.1。我可以将任何示例草图加载并编译到我的 Uno,而不会出现任何错误。我刚刚遇到 GRBL 的这个问题。
avrdude: stk500_recv(): 程序员没有响应
上传到板上的问题。有关建议,请参阅http://www.arduino.cc/en/Guide/Troubleshooting#upload。