I have an UNO WIFI rev 2.3. Code uploads and executes on this correctly.
However, after installing a Motor Shield v2.3, upload of the DCmotorTest script fails with the error:
avrdude: Short read, read only 0 out of 64 bytes
I am powering the UNO over USB with a nominal 5V (4x1.5AA battery) supply on the Motorshield, Vin jumper REMOVED, light is ON
Port and model are correct in the IDE (works with blink and other code without the shield).
Full dump of the verbose upload output is as follows:
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\Alan\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 : 9216D274E54CD9B551F2
Vtarget : 5.00 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
avrdude: jtag3_edbg_signoff(): unexpected response 0x01, 0x00
avrdude done. Thank you.
An error occurred while uploading the sketch
At the marked point of failure above, when code is uploaded WITHOUT the shield, AVRDUDE returns:
avrdude: Partial Family_ID returned: "mega"
avrdude: AVR device initialized and ready to accept instructions
Any suggestions appreciated.
avrdude error uploading with Motor Shield V2.3
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- ayurkowski
- Posts: 10
- Joined: Thu Nov 09, 2017 1:35 pm
- ayurkowski
- Posts: 10
- Joined: Thu Nov 09, 2017 1:35 pm
Re: avrdude error uploading with Motor Shield V2.3
It's probably worth mentioning too that the Arudino megaAVR boards v1.8.7 IS installed in the boards manager...
- adafruit_support_bill
- Posts: 88152
- Joined: Sat Feb 07, 2009 10:11 am
Re: avrdude error uploading with Motor Shield V2.3
Are you able to upload other code to the board?
- ayurkowski
- Posts: 10
- Joined: Thu Nov 09, 2017 1:35 pm
Re: avrdude error uploading with Motor Shield V2.3
And yet a further update:
- if I remove the shield and attempt to upload the code, it DOES upload;
- If I then remove power from the UNO after avrDude completes and verifies successfully, reinstall the shield, and power the UNO back up, NO CODE EXECUTES -- even the initial serial.println in the setup();
- removing the shield after this, and THEN powering the UNO backup up DOES print the initial setup() messages. This implies the shield is somehow blocking executing of any code...
- if I remove the shield and attempt to upload the code, it DOES upload;
- If I then remove power from the UNO after avrDude completes and verifies successfully, reinstall the shield, and power the UNO back up, NO CODE EXECUTES -- even the initial serial.println in the setup();
- removing the shield after this, and THEN powering the UNO backup up DOES print the initial setup() messages. This implies the shield is somehow blocking executing of any code...
- adafruit_support_bill
- Posts: 88152
- Joined: Sat Feb 07, 2009 10:11 am
Re: avrdude error uploading with Motor Shield V2.3
Please post some photos showing all of your soldering and connections to the shield.
- ayurkowski
- Posts: 10
- Joined: Thu Nov 09, 2017 1:35 pm
Re: avrdude error uploading with Motor Shield V2.3
All pins have continuity to the corresponding next pin inboard
- ayurkowski
- Posts: 10
- Joined: Thu Nov 09, 2017 1:35 pm
- adafruit_support_bill
- Posts: 88152
- Joined: Sat Feb 07, 2009 10:11 am
Re: avrdude error uploading with Motor Shield V2.3
Please show the top side of the shield too. As well as all of your motor and power supply connections.
- ayurkowski
- Posts: 10
- Joined: Thu Nov 09, 2017 1:35 pm
- ayurkowski
- Posts: 10
- Joined: Thu Nov 09, 2017 1:35 pm
- ayurkowski
- Posts: 10
- Joined: Thu Nov 09, 2017 1:35 pm
Re: avrdude error uploading with Motor Shield V2.3
Found and fixed the problem!
I didn't like the look of the solder joints of the 2x3 extension header adjacent to the m4 terminal block, esp the middle pin on the board side. I decided to re-flow all the solder joints, and following this was able to upload and execute the motor shield demo.
My best theory is that although I didn't SEE anything obvious is that the header was creating a loop or some type of feedback on the UNO ICSP port -- even though the header itself isn't used by the motor control shield.
Thanks for forcing me to reexamine everything and identify this. Hopefully this post helps someone else in future.
I didn't like the look of the solder joints of the 2x3 extension header adjacent to the m4 terminal block, esp the middle pin on the board side. I decided to re-flow all the solder joints, and following this was able to upload and execute the motor shield demo.
My best theory is that although I didn't SEE anything obvious is that the header was creating a loop or some type of feedback on the UNO ICSP port -- even though the header itself isn't used by the motor control shield.
Thanks for forcing me to reexamine everything and identify this. Hopefully this post helps someone else in future.
- adafruit_support_bill
- Posts: 88152
- Joined: Sat Feb 07, 2009 10:11 am
Re: avrdude error uploading with Motor Shield V2.3
Thanks for the follow-up. From what we could see in the photos, everything looked pretty good. But a short in the ICSP header could definitely cause problems.
Please be positive and constructive with your questions and comments.