数码之家

 找回密码
 立即注册
搜索
查看: 3668|回复: 10

[Arduino] 求助:关于编程器出错-atmega8

[复制链接]
发表于 2020-10-7 11:16:10 | 显示全部楼层 |阅读模式

爱科技、爱创意、爱折腾、爱极致,我们都是技术控

您需要 登录 才可以下载或查看,没有账号?立即注册

x
本帖最后由 sckocn 于 2020-10-7 11:19 编辑

想把编程器刷成最新版本的固件.

编程器后面写着AVRISP 可是读取到的是STK500, avrstudio4显示固件是2.07 要我升级,升级的时候就绿灯也亮,就是出现错误.
是Atmega8坏了?只是哪个I/O口坏了?还是不支持的原因?
arduino里的其他编程器固件能不能刷入?怎么刷入呢?
4dc56d7076d87ffbce0dec71120e260.jpg ***更正, LDO查到是8G http://www.s-manuals.com/smd/8g 是8V稳压3端,这么说来电压也正常.
ps:12V接好,跳线连好了.



123.png 4dc56d7076d87ffbce0dec71120e260.jpg 829612d4eb37a2957f77f836e4068cf.jpg

22.png 321.png 333.png

以下出错信息
  1. Arduino:1.8.13 (Windows 7), 开发板:"ATmega8, Yes (UART0), EEPROM retained, BOD disabled, LTO disabled, External 7.3728 MHz"



  2. avrdude: Version 6.3-20190619

  3.          Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

  4.          Copyright (c) 2007-2014 Joerg Wunsch



  5.          System wide configuration file is "C:\Users\bobby\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\2.0.6/avrdude.conf"



  6.          Using Port                    : COM1

  7.          Using Programmer              : stk500

  8.          AVR Part                      : ATmega8

  9.          Chip Erase delay              : 10000 us

  10.          PAGEL                         : PD7

  11.          BS2                           : PC2

  12.          RESET disposition             : dedicated

  13.          RETRY pulse                   : SCK

  14.          serial program mode           : yes

  15.          parallel program mode         : yes

  16.          Timeout                       : 200

  17.          StabDelay                     : 100

  18.          CmdexeDelay                   : 25

  19.          SyncLoops                     : 32

  20.          ByteDelay                     : 0

  21.          PollIndex                     : 3

  22.          PollValue                     : 0x53

  23.          Memory Detail                 :



  24.                                   Block Poll               Page                       Polled

  25.            Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack

  26.            ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------

  27.            eeprom         4    20   128    0 no        512    4      0  9000  9000 0xff 0xff

  28.            flash         33    10    64    0 yes      8192   64    128  4500  4500 0xff 0x00

  29.            lfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00

  30.            hfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00

  31.            efuse          0     0     0    0 no          0    0      0     0     0 0x00 0x00

  32.            lock           0     0     0    0 no          1    0      0  2000  2000 0x00 0x00

  33.            calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00

  34.            signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00



  35.          Programmer Type : STK500V2

  36.          Description     : Atmel STK500

  37.          Programmer Model: AVRISP

  38.          Hardware Version: 1

  39.          Firmware Version Master : 2.07

  40.          Vtarget         : 5.0 V

  41.          SCK period      : 0.1 us



  42. avrdude: stk500v2_command(): command failed

  43. avrdude: initialization failed, rc=-1

  44.          Double check connections and try again, or use -F to override

  45.          this check.





  46. 烧录引导程序出错。

  47. avrdude done.  Thank you.





  48. 在文件 -> 首选项开启
  49. “编译过程中显示详细输出”选项
  50. 这份报告会包含更多信息。
复制代码






发表于 2020-10-7 11:23:26 | 显示全部楼层
本帖最后由 xixi2006 于 2020-10-7 11:25 编辑

锁死了吗?看看刷机时编程配置才行。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-10-7 11:42:57 | 显示全部楼层
xixi2006 发表于 2020-10-7 11:23
锁死了吗?看看刷机时编程配置才行。

1.png 2.png 3.png 4.png 5.png 6.png
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-10-7 11:53:41 | 显示全部楼层
xixi2006 发表于 2020-10-7 11:23
锁死了吗?看看刷机时编程配置才行。

是锁死了吗? 签名都是错的

11.png
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-10-7 11:57:13 | 显示全部楼层
xixi2006 发表于 2020-10-7 11:23
锁死了吗?看看刷机时编程配置才行。

以下是熔丝配置
  1. avrdude.exe: Version 6.3, compiled on Feb 17 2016 at 09:25:53
  2.              Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
  3.              Copyright (c) 2007-2014 Joerg Wunsch

  4.              System wide configuration file is "C:\Users\bobby\Downloads\avrdudess\avrdude.conf"

  5.              Using Port                    : COM1
  6.              Using Programmer              : stk500
  7.              Overriding Baud Rate          : 115200
  8.              AVR Part                      : ATmega8
  9.              Chip Erase delay              : 10000 us
  10.              PAGEL                         : PD7
  11.              BS2                           : PC2
  12.              RESET disposition             : dedicated
  13.              RETRY pulse                   : SCK
  14.              serial program mode           : yes
  15.              parallel program mode         : yes
  16.              Timeout                       : 200
  17.              StabDelay                     : 100
  18.              CmdexeDelay                   : 25
  19.              SyncLoops                     : 32
  20.              ByteDelay                     : 0
  21.              PollIndex                     : 3
  22.              PollValue                     : 0x53
  23.              Memory Detail                 :

  24.                                       Block Poll               Page                       Polled
  25.                Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
  26.                ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
  27.                eeprom         4    20   128    0 no        512    4      0  9000  9000 0xff 0xff
  28.                flash         33    10    64    0 yes      8192   64    128  4500  4500 0xff 0x00
  29.                lfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
  30.                hfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
  31.                lock           0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
  32.                calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00
  33.                signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

  34.              Programmer Type : STK500V2
  35.              Description     : Atmel STK500
  36.              Programmer Model: AVRISP
  37.              Hardware Version: 1
  38.              Firmware Version Master : 2.07
  39.              Vtarget         : 5.0 V
  40.              SCK period      : 0.1 us

  41. avrdude.exe: stk500v2_command(): command failed
  42. avrdude.exe: initialization failed, rc=-1
  43. avrdude.exe: AVR device initialized and ready to accept instructions
  44. avrdude.exe: Device signature = 0x5e0000
  45. avrdude.exe: Expected signature for ATmega8 is 1E 93 07

  46. avrdude.exe done.  Thank you.


  47. Reading lock bits...
  48. >>>: avrdude -u -c stk500 -p m8 -P COM1 -b 115200 -F -v -U lock:r:-:h
  49. 错误: _FUSELOCKREADFAIL


  50. avrdude.exe: Version 6.3, compiled on Feb 17 2016 at 09:25:53
  51.              Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
  52.              Copyright (c) 2007-2014 Joerg Wunsch

  53.              System wide configuration file is "C:\Users\bobby\Downloads\avrdudess\avrdude.conf"

  54.              Using Port                    : COM1
  55.              Using Programmer              : stk500
  56.              Overriding Baud Rate          : 115200
  57.              AVR Part                      : ATmega8
  58.              Chip Erase delay              : 10000 us
  59.              PAGEL                         : PD7
  60.              BS2                           : PC2
  61.              RESET disposition             : dedicated
  62.              RETRY pulse                   : SCK
  63.              serial program mode           : yes
  64.              parallel program mode         : yes
  65.              Timeout                       : 200
  66.              StabDelay                     : 100
  67.              CmdexeDelay                   : 25
  68.              SyncLoops                     : 32
  69.              ByteDelay                     : 0
  70.              PollIndex                     : 3
  71.              PollValue                     : 0x53
  72.              Memory Detail                 :

  73.                                       Block Poll               Page                       Polled
  74.                Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
  75.                ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
  76.                eeprom         4    20   128    0 no        512    4      0  9000  9000 0xff 0xff
  77.                flash         33    10    64    0 yes      8192   64    128  4500  4500 0xff 0x00
  78.                lfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
  79.                hfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
  80.                lock           0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
  81.                calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00
  82.                signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

  83.              Programmer Type : STK500V2
  84.              Description     : Atmel STK500
  85.              Programmer Model: AVRISP
  86.              Hardware Version: 1
  87.              Firmware Version Master : 2.07
  88.              Vtarget         : 5.0 V
  89.              SCK period      : 0.1 us

  90. avrdude.exe: stk500v2_command(): command failed
  91. avrdude.exe: initialization failed, rc=-1
  92. avrdude.exe: AVR device initialized and ready to accept instructions
  93. avrdude.exe: Device signature = 0x580000
  94. avrdude.exe: Expected signature for ATmega8 is 1E 93 07

  95. avrdude.exe done.  Thank you.
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-10-7 12:14:47 | 显示全部楼层
发现这个签名还是可变?的.
image.png
回复 支持 反对

使用道具 举报

发表于 2020-10-11 00:59:01 | 显示全部楼层
这个型号不支持通过串口直接烧写的,只能用下载器,除非烧写过BootLoader。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-10-12 14:48:10 | 显示全部楼层
40560335 发表于 2020-10-11 00:59
这个型号不支持通过串口直接烧写的,只能用下载器,除非烧写过BootLoader。

感谢回复,
用下载器读出来的signature=0x000000,可能是被锁死了.正在研究高压熔丝恢复
回复 支持 反对

使用道具 举报

发表于 2020-10-12 21:30:42 | 显示全部楼层
13块淘一个ISP的算了,支持win7-64的。不过可能要用PROGISP1.72单独烧写
回复 支持 反对

使用道具 举报

发表于 2020-10-12 22:47:24 | 显示全部楼层
sckocn 发表于 2020-10-12 14:48
感谢回复,
用下载器读出来的signature=0x000000,可能是被锁死了.正在研究高压熔丝恢复 ...

直接换一个吧,锁了还不够麻烦的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-10-13 08:01:28 | 显示全部楼层
本帖最后由 sckocn 于 2020-10-13 08:02 编辑
sz1988 发表于 2020-10-12 21:30
13块淘一个ISP的算了,支持win7-64的。不过可能要用PROGISP1.72单独烧写

@4056335 及各位给与回复的朋友:
经过一晚上"战斗", 搞定了个以为被锁死的mega32. 一会儿再试试mega8.
我是误设置错误CKSEL, 选择了内置振荡.
被"锁死"的mega32, 先去掉外部晶振, 编程速度选择16K之后能识别到"签名", 能读写熔丝.

还好没设置错jtag和ISP,reset端口.不然真凉了.

一会儿再试试mega8.

aab33e3776378e02711894256838642.jpg
883388136f13ee5e940159ee1b4b9ec.jpg

1.png


回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

APP|手机版|小黑屋|关于我们|联系我们|法律条款|技术知识分享平台

闽公网安备35020502000485号

闽ICP备2021002735号-2

GMT+8, 2024-4-16 15:35 , Processed in 0.234001 second(s), 11 queries , Redis On.

Powered by Discuz!

© 2006-2023 smzj.net

快速回复 返回顶部 返回列表