首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AVR ISP MKII,AVR,Ubuntu 11.10

AVR ISP MKII,AVR,Ubuntu 11.10
EN

Stack Overflow用户
提问于 2012-03-29 16:34:36
回答 2查看 6.5K关注 0票数 2

所以,我以前曾在Ubuntu上做过这个工作。但后来我升级到11.10。现在,没有这样的运气。

注意:如果您仍然在让它在eclipse上工作,您可能需要尝试以下命令行内容.如果它在这里不起作用,它就不会在日食中工作。

我有一个错误:

代码语言:javascript
复制
avrdude: stk500v2_command(): command failed
avrdude: stk500v2_command(): unknown status 0xc9
avrdude: stk500v2_program_enable(): cannot get connection status
avrdude: initialization failed, rc=-1
     Double check connections and try again, or use -F to override
     this check.

我尝试过各种不同的配置。-B 1 ,10,1000,

-F帮不了什么忙,因为那样你就能拿回000000或者别的什么作为你的系列。此外,我应该提到,从下面的输出可以清楚地看到,它到达程序员,甚至到目标板,并读取它的电压。您还可以看到目标芯片重置。(我已经在包括DB101在内的许多设备上进行了测试,您可以看到它何时重置)

整个输出如下所示:

代码语言:javascript
复制
> avrdude -c avrispmkII -P usb -p m1281 -B 100 -v

avrdude: Version 5.10, compiled on Jun 29 2010 at 03:44:14
     Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
     Copyright (c) 2007-2009 Joerg Wunsch

     System wide configuration file is "/etc/avrdude.conf"
     User configuration file is "/home/david/.avrduderc"
     User configuration file does not exist or is not a regular file, skipping

     Using Port                    : usb
     Using Programmer              : avrispmkII
     Setting bit clk period        : 100.0
avrdude: usbdev_open(): Found AVRISP mkII, serno: 000200037289
     AVR Part                      : ATMEGA1281
     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    131072  256    512  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 : STK500V2
     Description     : Atmel AVR ISP mkII
     Programmer Model: AVRISP mkII
     Hardware Version: 1
     Firmware Version Master : 1.13
     Vtarget         : 5.1 V
     SCK period      : 100.37 us

avrdude: stk500v2_command(): command failed
avrdude: stk500v2_command(): unknown status 0xc9
avrdude: stk500v2_program_enable(): cannot get connection status
avrdude: initialization failed, rc=-1
     Double check connections and try again, or use -F to override
     this check.


avrdude done.  Thank you.

我已经把udev的东西设置好了:

cat /etc/udev/rules.d.d/60-avrisp.ules子系统!=“usb_device”,ACTION!="add",GOTO="avrisp_end“

代码语言:javascript
复制
# Atmel Corp. JTAG ICE mkII
ATTR{idVendor}=="03eb", SYSFS{idProduct}=="2103", MODE="660", GROUP="dialout"

# Atmel Corp. AVRISP mkII
ATTR{idVendor}=="03eb", SYSFS{idProduct}=="2104", MODE="660", GROUP="dialout"

# Atmel Corp. Dragon
ATTR{idVendor}=="03eb", SYSFS{idProduct}=="2107", MODE="660", GROUP="dialout"

LABEL="avrisp_end"

董事会和程序员与AVR工作室在另一台机器上工作。很明显,很多人在Linux上都有这个问题。))(不想挖一个吹风箱。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2012-05-15 04:45:19

我也很难让我的工作。最后,我被http://wiki.dataflow.ws/Electronix/AvrIsp2OnOSX绊倒了,发现我实际上错过了一个包。安装后

代码语言:javascript
复制
sudo apt-get install uisp

我跑了

代码语言:javascript
复制
sudo avrdude -c avrispmkII -p m168 -P usb: -B 8 -v -U lock:w:0x3f:m -U lfuse:w:0xff:m -U hfuse:w:0xdf:m -U efuse:w:0x0:m

还有一个漂亮的绿色LED。

票数 4
EN

Stack Overflow用户

发布于 2013-06-26 11:16:58

为了记录(同样的错误消息),也因为我花了一些时间摆弄我的AVR ISP MKII:

代码语言:javascript
复制
 avrdude: initialization failed, rc=-1
      Double check connections and try again, or use -F to override
      this check.

只有在使用-B参数调整时间之后,它才能正常工作!看起来就连现在的迷你电脑也太快了。

雅夫都德现在为我可靠地在Debian 7下工作。而且,它在Windows8下工作,安装了WinAVR驱动程序,然后运行Debian 7非UI安装的VirtualBox VM,通过AVRISP传递到VirtualBox中的VM。

代码语言:javascript
复制
avrdude -c avrispmkII -P usb -p t13 -B 10 -v
...
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9929587

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档