Go Down

Topic: "Genuine" Arduino Due can't upload sketch, 2 clone Mega2560s work fine,,, (Read 373 times) previous topic - next topic

kenlbowen

Windows 10 x64
Currently using Arduino IDE vers. 1.8.3, tried earlier versions also.

Device manager shows "Arduino Due Programming Port (COM7)

IDE:    Board->Arduino Duemilanove or Diecimilia
          Processor->ATmega328
          Port->COM7 (Arduino Due (Programming Port))
         (lower right status bar reflects the same info)
         Get Board info returns BN: Arduino Due (Programming Port)
                                          VID: 2A03
                                          PID: 003D
                                          SN: 55639...(you get the point)

(Also ran the loopback test referred to elsewhere in the forum - checks fine)

Compile/Verify - no errors, just the standard info...

Arduino: 1.8.3 (Windows 10), Board: "Arduino Duemilanove or Diecimila, ATmega328"

Sketch uses 928 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

Upload, on the other hand...

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM7 -b57600 -D -Uflash:w:R:\Temp\arduino_build_34495/Blink1.ino.hex:i   <- (The Blink1 sketch just changed the wait times to 500 instead of 1000. That way I could tell if the sketch overwrote the 'blinker' that was loaded at the factory)

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM7
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x2a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x2a
avrdude: stk500_recv(): programmer is not responding
.
...and on and on and on...
"
Both Mega2560s upload just fine after I switch the board & port selection.

Googled around and see a lot of references to "bossac" for uploading .bin files, was wondering where the avrdude stuff showed up? I did notice that avrdude works with .hex files...

Did I miss some installation step? IDE did notify me about Due drivers and I installed them.

Someone point me to the right info I need to read please?

-A frustrated Old Fart who built one of the original Altair8800s back in 1975

DrAzzy

The arduino due is not the same as the arduino duemillanove.
It would appear that these boards were named without consulting anyone who wasn't a native speaker of a romance language. If you know italian, it's obvious that "Arduino Two" is not the same as "Arduino 2009" or "Arduino 2010". But if you don't know that "due" means "two" and "duemillanove" means "two thousand nine", you're likely to assume that "due" is an abbreviation for "duemillanove" - this is a pretty common thing for people to be confused by.

The files to support the Due (and the Zero and other SAM based boards) are not installed by default, for reasons that were never clear to me (they were in the past) - adding to the confusion.

To install support for the Arduino Due and other SAM-based boards, go to tools -> board manager, find the Arduino SAM board package, and install it.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

kenlbowen

 :smiley-confuse:

Success!!!!

And I spent 4 days googling and even bought a 2nd Due. (I just figured the 'Due' was the shortened version of the other name!)

Thank you so much. After reading all the web sites about problems with uploading, I was getting pretty frustrated.

-A grateful Old Fart


Go Up