在 Arduino Uno 中上传草图的问题

我使用 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:UsersSaurabhDocumentsArduinoDatapackagesarduinotoolsavrdude6.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

这个错误。

stack overflow Problem in Uploading Sketch in Arduino Uno
原文答案

答案:

作者头像

确保 Tx/Rx 引脚上没有输入,然后它才能工作。我已经尝试过了,并且董事会开始工作。