linux - 无法通过 AVRisp mkII 与 atmega328p 通话

标签 linux microcontroller avr atmega avrdude

我有与此处类似的问题(AVRISPmkII connection status: Unknown status 0x00),但不同的设置和更改 bitcklock 没有帮助。 当前设置是 atmega328p,外部振荡器 16MHz 连接到 avrisp mkII 编程器的 ISP 接口(interface),但无论我做什么,它始终显示相同的输出:

mike@asus:~/wireless-temp-sens/tests$ sudo avrdude -p atmega328p -P usb -c avrispv2 -U lfuse:w:0xff:m -U hfuse:w:0xd9:m -U efuse:w:0xfe:m -v

avrdude: Version 6.0.1, compiled on Oct 21 2013 at 17:07:18
         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/mike/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : avrispv2
avrdude: usbdev_open(): Found AVRISP mkII, serno: 000200209719
         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 : STK500V2
         Description     : Atmel AVR ISP V2
         Programmer Model: AVRISP mkII
         Hardware Version: 1
         Firmware Version Master : 1.23
         Vtarget         : 4.9 V
         SCK period      : 2053.39 us

avrdude: stk500v2_command(): command failed
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: Unknown status 0x00
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

感谢任何帮助!

最佳答案

问题解决了!不记得具体是什么原因了。我猜时钟晶体在面包板上没有正确的连接。所以,我会说:

  1. 检查接线
  2. 检查接线
  3. 检查接线

关于linux - 无法通过 AVRisp mkII 与 atmega328p 通话,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27385064/

相关文章:

c - 无法在eclipse/code composer studio下编译

c - 在没有 float 的情况下处理 C 中的小数

c++ - AVR 在类构造函数中分配内存

linux - 上传文件到远程服务器

php - 如何使用htaccess限制对文件夹及其子文件夹中所有文件的访问并重定向到主文件夹?

linux - 如何在 Bash 中存储/保存命令的输出?

c - 从 rs232 读取多个字节到 uart (avr atmega16)

php - 如何设置open_basedir的值?

c - 无时钟 I2C STM32L0

string - 在FLASH中留下数据数组(字体) - AVR GCC中的PROGMEM