【问题标题】:Problem in Uploading Sketch in Arduino Uno在 Arduino Uno 中上传草图的问题
【发布时间】:2020-09-14 10:48:48
【问题描述】:

我使用 arduino 大约 3-4 个月。现在我在 arduino Uno 中上传草图时遇到了问题。

这发生在使用 atmel-ice 进行调试之后。我第一次尝试在 atmel studio 中使用 atmel-ice 调试代码。我按照 YouTube 上的教程视频使用 atmel-ice 调试器连接和调试 arduino uno。它从未开始调试它并因错误而关闭。之后,我尝试使用 arduino ide 以及 atmel studio 和使用 ice 上传草图,但它无法上传草图,并且在 atmel studio 中我可以在尝试调试后读取设备签名,但我无法读取设备签名。我从未接触过 atmel studio for arduino 中的保险丝设置。这是默认设置。

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\Saurabh\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM12
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x08
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x08
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x08
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x08
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x08
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x08
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x08
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x08
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x08
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x08

avrdude done.  Thank you.

遇到上述错误。在arduino ide中。 我和其他人一起阅读了类似的问题,其中一些人说它处于调试模式。但是在重新启动后,它应该会随着 uno 重置而消失。我还检查了环回它是否正常工作。这发生在我的 3 个 uno 板上,我现在只剩下 1 个。我该如何解决这个问题。我也尝试刻录引导加载程序,但也出现错误。我认为可能是保险丝的问题。我该如何解决这个问题。

如果我使用的是 FTDI232 编程器,它会显示

avrdude: ser_open(): can't open device "\\.\COM13": Access is denied.



avrdude done.  Thank you.

这个错误。

尝试使用ftdi232后得到

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
         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 STK500
         Programmer Model: Unknown
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout

这个错误。

【问题讨论】:

  • 在 Arduino IDE 中使用“Burn bootloader”。不要通过 ISP 程序员上传草图
  • 所以我也试过了:avrdude:stk500_recv():程序员没有响应响应 avrdude:stk500_getsync() 尝试 2 次,共 10 次:不同步:resp=0x04 我遇到了这个错误。
  • 您有连接到 ICSP 以进行引导加载程序烧录的 ISP 编程器吗?
  • 我认为ISP和ICSP是一样的?如果没有,我在我之前使用的系统编程器上安装了 Arduino 板。我还有其他我正在尝试使用的小程序员(FTDI232),但它们都没有工作。我也有 Atmel-Ice 调试器,但也无法对 arduino 进行编程。我知道问题出在引导加载程序上,但我真正应该使用什么以及如何刻录引导加载程序。

标签: arduino-uno arduino-ide atmelstudio


【解决方案1】:

确保 Tx/Rx 引脚上没有输入,然后它才能工作。我已经尝试过了,电路板开始工作了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-27
    • 1970-01-01
    • 1970-01-01
    • 2022-12-14
    相关资源
    最近更新 更多