Go Down

Topic: Error uploading sketches (Read 1 time) previous topic - next topic

12jcarduino34

Everything was working OK two nights ago.  Back to just trying to run Blink.  Did I burn something out?Now getting the below errors:

Arduino: 1.8.10 (Windows 10), Board: "Arduino Uno WiFi Rev2, ATMEGA328"

Sketch uses 1346 bytes (2%) of program storage space. Maximum is 48640 bytes.
Global variables use 22 bytes (0%) of dynamic memory, leaving 6122 bytes for local variables. Maximum is 6144 bytes.
An error occurred while uploading the sketch
avrdude: Short read, read only 0 out of 64 bytes
avrdude: jtag3_edbg_recv(): Unexpected response 0x00
avrdude: retrying with external reset applied
avrdude: jtag3_edbg_send(): Unexpected response 0x81, 0x11
avrdude: jtag3_edbg_recv(): Unexpected response 0x80
avrdude: retrying with external reset applied
avrdude: JTAGEN fuse disabled?
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: jtag3_edbg_send(): Unexpected response 0x81, 0x11
avrdude: jtag3_edbg_recv(): Unexpected response 0x80
avrdude: jtag3_edbg_send(): Unexpected response 0x81, 0x11
avrdude: jtag3_edbg_recv(): Unexpected response 0x80
avrdude: jtag3_edbg_signoff(): unexpected response 0x81, 0x11
avrdude: jtag3_edbg_signoff(): unexpected response 0x01, 0x00

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

pert

Please do this:
  • (In the Arduino IDE) File > Preferences
  • Uncheck the checkbox next to "Show verbose output during: compilation"
  • Check the checkbox next to "Show verbose output during: upload
  • Click "OK"
  • Sketch > Upload
  • After the upload fails, you'll see a button on the right side of the orange bar "Copy error messages" (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button.
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the upload output between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

12jcarduino34

Will do this early tomorrow morning.  Thank you.

12jcarduino34

Here is the verbose upload. If someone can translate this, I would be grateful.

Code: [Select]
Arduino: 1.8.10 (Windows 10), Board: "Arduino Uno WiFi Rev2, ATMEGA328"

In file included from C:\Program Files (x86)\Arduino\libraries\Adafruit_FT6206_Library-master\Adafruit_FT6206.cpp:19:0:

C:\Users\John\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.5\libraries\Wire\src/Wire.h: In member function 'void Adafruit_FT6206::readData()':

C:\Users\John\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.5\libraries\Wire\src/Wire.h:62:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)

     uint8_t requestFrom(int, int);

             ^~~~~~~~~~~

C:\Users\John\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.5\libraries\Wire\src/Wire.h:60:13: note: candidate 2: virtual uint8_t TwoWire::requestFrom(uint8_t, size_t)

     uint8_t requestFrom(uint8_t, size_t);

             ^~~~~~~~~~~

C:\Users\John\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.5\libraries\Wire\src/Wire.h: In member function 'uint8_t Adafruit_FT6206::readRegister8(uint8_t)':

C:\Users\John\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.5\libraries\Wire\src/Wire.h:62:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)

     uint8_t requestFrom(int, int);

             ^~~~~~~~~~~

C:\Users\John\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.5\libraries\Wire\src/Wire.h:60:13: note: candidate 2: virtual uint8_t TwoWire::requestFrom(uint8_t, size_t)

     uint8_t requestFrom(uint8_t, size_t);

             ^~~~~~~~~~~

Sketch uses 25198 bytes (51%) of program storage space. Maximum is 48640 bytes.
Global variables use 957 bytes (15%) of dynamic memory, leaving 5187 bytes for local variables. Maximum is 6144 bytes.
C:\Users\John\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\John\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Uflash:w:C:\Users\John\AppData\Local\Temp\arduino_build_152356/Main_Program.ino.hex:i -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:C:\Users\John\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.5/bootloaders/atmega4809_uart_bl.hex:i

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\John\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : xplainedmini_updi
         Overriding Baud Rate          : 115200
avrdude: Found CMSIS-DAP compliant device, using EDBG protocol
         AVR Part                      : ATmega4809
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           prodsig        0     0     0    0 no         61   61      0     0     0 0x00 0x00
           fuses          0     0     0    0 no          9    0      0     0     0 0x00 0x00
           fuse0          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse1          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse2          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse4          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse5          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse6          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse7          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse8          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0     0     0 0x00 0x00
           data           0     0     0    0 no          0    0      0     0     0 0x00 0x00
           usersig        0     0     0    0 no         64   64      0     0     0 0x00 0x00
           flash          0     0     0    0 no      49152  128      0     0     0 0x00 0x00
           eeprom         0     0     0    0 no        256   64      0     0     0 0x00 0x00

         Programmer Type : JTAGICE3_UPDI
         Description     : Atmel AVR XplainedMini in UPDI mode
         ICE hardware version: 0
         ICE firmware version: 1.19 (rel. 57)
         Serial number   : CAED089CD8CB63F8723F
         Vtarget         : 3.30 V
         JTAG clock megaAVR/program: 0 kHz
         JTAG clock megaAVR/debug:   0 kHz
         JTAG clock Xmega: 0 kHz
         PDI clock Xmega : 0 kHz

avrdude: Short read, read only 0 out of 64 bytes
avrdude: jtag3_edbg_recv(): Unexpected response 0x12
avrdude: retrying with external reset applied
avrdude: jtag3_edbg_send(): Unexpected response 0x81, 0x11
avrdude: jtag3_edbg_recv(): Unexpected response 0x80
avrdude: retrying with external reset applied
avrdude: JTAGEN fuse disabled?
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: jtag3_edbg_send(): Unexpected response 0x81, 0x11
avrdude: jtag3_edbg_recv(): Unexpected response 0x80
avrdude: jtag3_edbg_send(): Unexpected response 0x81, 0x11
avrdude: jtag3_edbg_recv(): Unexpected response 0x80
avrdude: jtag3_edbg_signoff(): unexpected response 0x81, 0x11
An error occurred while uploading the sketch
avrdude: jtag3_edbg_signoff(): unexpected response 0x01, 0x00

avrdude done.  Thank you.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

12jcarduino34

Does anyone know how to use the -F flag so I can try to override the check?  My program was still running on the board, I just cannot upload a new one.

avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

pert

You would need to run the upload command from the command line, and add the -F flag to the command.

Generally, when an AVRDUDE check fails, and causes AVRDUDE to print that suggestion to use -F, there is a serious underlying problem causing the failure, that won't be fixed simply by bypassing the check. However, I don't have any knowledge about the cause of this particular error, so I suppose maybe there is a chance -F would be helpful.

12jcarduino34

This has gone unanswered for a while.  This has been a problem experienced by others.  If anyone out there knows how to solve this I think it would be useful for the general community.  Thank you.

If there is a known solution, or it is known that there is no solution, either way it would help to know.  I bought a new board and will be trying this again.

I think what happened is that I renamed my program, then I uploaded the wrong program with the same name (dumb mistake).  In my old program I had a voltage input to an analogue pin.  In the wrongly uploaded program, the same pin was expecting to be an output.  The fact that I had a positive voltage to an output pin may have fried the board or blew a "fuse"?  I don't think the "fuse" can be reset.  It would be great if there was a way to do it.

This is all hypothetical as I don't know enough about the board circuitry to understand what I did.

pert

If anyone out there knows how to solve this I think it would be useful for the general community.
I'm certainly interested to know the cause or solution.

The fact that I had a positive voltage to an output pin may have fried the board or blew a "fuse"?  I don't think the "fuse" can be reset.
That's not the kind of fuse the avrdude output is talking about. In this context, a fuse is a section of memory on a microcontroller that can be used to configure its behavior (e.g., set it to use the internal oscillator or an external crystal/resonator).


Go Up