Hi all,I have the same problem since the beginning, and this is bugging me big time for my projects. I think I have identified a definite solution.In fact credit is due to the guys of Freetronics about the EtherDue.see link http://forum.freetronics.com/viewtopic.php?f=45&t=6055The DUE boards may be affected by the following bug: On power-on the board may start to the bootloader instead of running the onboard program, as if the ERASE button had been pressed. Pressing "reset" resumes normal operation. The bug appears to be caused by undocumented behaviour in the ATSAM3X8E microcontroller regarding the "erase" input pin - according to the specification we shouldn't ever be seeing this.The fix is to solder a surface mount resistor (0603 size) onto the board: solder a 10k resistor between the ERASE line and +3.3V, close to fet T3. In practice, solder it across the 2 upper pins of T3.To know if you have a DUE (or derivate/clone) that may be affected, check if fet T3 is soldered horizontally - see picture below:(fet T3 is in the middle of the picture, just to the right of the 6-pin SPI connector)(If your DUE has the fet soldered vertically, likely the board is more recent and good, as it has resistor R99 soldered.)Here is a picture of a fixed DUE with a 10k resistor that I soldered across the pins of T3:I have tested this and works fine.-D
Are there instructions somewhere on how to BUILD the 16U2 firmware? I've got the source, and the LUFA libraries, but I have no clue what environment needs to be setup for the makefile to work.Regards,Ray L.
According to dancombine's suggestion, I put normal through-hole 10k resistor in. Everything work correctly. The DUE start the sketch every time I put power in. Thank to dancombine.
Just to confirm what sined23 has posted: Like most other Due's in this thread, my new Arduino Due would also fail to start after either uploaded or poweron. I was not happy.After a bit of research, this thread and an at hand USBasp programmer, I uploaded the latest atmega16u2 firmware, which has completely resolved this issue for me.Command used:(Copy avrdude.conf and the hex file to the same folder as avrdude.exe before running.)R:\Arduino\hardware\tools\avr\bin>avrdude.exe -C avrdude.conf -c usbasp -P /dev/ttyACM0 -b 19200 -p m16u2 -vvv -U flash:w:16u2.hex:i
Any way of doing this without an additional programmer?Regards,Graham
I really like this solution and thought that soldering a normal 10k resistor would be easier than a SMD 0603 resistor. I tried for 10 minutes but was not able to get the 1st pin of the resistor firmly connected. Then I was not able to just get a blob of solder firm as described in the freetronic description. So I had to give up, will ask a colleague at work who is much better in soldering than I whether he can do that soldering of 10k resistor for me.Hermann.
HELLOTinyBasic Plus v0.1490865 bytes free.OK>