Due won't start after power off-on, have to reset

HermannSW: 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.

Here is an update, today my colleague helped me and soldered the SMD 103 resistor onto one of my 3 Arduino Dues:

I did flash "Blink" example program and after disconnecting and reconnecting power Due blinked again. This resolved my real need for Arduebot -- it would be really bad to have Arduebot robot driving some course and getting fully stopped by a voltage spike without any chance to restart.

Next I disconnected the USB cable, went to colleagues computer and connected there -- Due Blink program did NOT start.

After some investigations I can say the following on this 10K resistor fix for my Due:

  • if power disconnect takes less than 4 seconds, blinking starts when reconnecting USB power
  • if power disconnect takes 4 seconds or longer, Due does not start blinking

Can anybody explain this behavior?

Hermann.

Hmmm, I did flash TinyBasic and the behavior is different, even after disconnecting power completely for 1 minute "sudo screen /dev/ttyACM0 9600" connects successfully:

HELLO
TinyBasic Plus v0.14
90865 bytes free.
OK
>

How can the Due bootup process be different for "Blink" vs. "TinyBasic"?

Hermann.

OK, I debugged this further and further and tried to identify the difference between Blink and TinyBasic.

It turned out that just doing the connection to TinyBasic made the difference (I did power via USB cable on programming port). Just repowering after 4 seconds or more did NOT start Blink example program. But as I said, connection as I did describe in previous posting did trigger start of blink program.

Now I even simplified that and remembered that just opening of USB port can be done via "stty -F /dev/ttyACM0 baudrate". I did not want to erase flash (which can be done with baudrate=1200). So I did "stty -F /dev/ttyACM0 9600" and immediately Blink program started working(blinking).

Next I connected only 9V block battery to Arduino Due (GND and Vin pins). Blink program did not start. After pressing Reset button Blink program started. Disconnecting 9V battery for 5 seconds and then reconnecting Blink program did not start.

Summary: If power break is 4 seconds or longer and there is no "external trigger" Arduino program does NOT start.

These are "external triggers" that worked:

  • power off and back on within less than 4 seconds
  • stty -F /dev/ttyACM0 9600 (when powered by programming port USB cable)
  • pressing Reset button

Can somebody who had declared soldering 10k resistor as I did works please comment on whether for them disconnecting power for more than 4 seconds and then repowering really does restart the program from flash (without any "external trigger" I described)?

Hermann.

Back at home I have access to all my 3 Arduino Dues. Now I did flash Blink sample on both Arduebots and did the timing experiments: |500x375

Interestingly those Dues do not have any 10k resistor soldered and do survive a longer power outage:

  • the leftt (2nd) Arduebot does start when repowering after 5 seconds, but not for longer times
  • the right (1st) Arduebot does start when repowering after 7 seconds, but not for longer times

I did retest my bare Arduino Due I used last night also via power jack, and again up to 4 seconds is fine, but longer power outage needs an external trigger to restart.

Last experiment I did was to remove the soldered 10k resistor that got soldered yesterday. The timing measurements show no difference, up to 4 seconds power outage and the Dues starts automatically, more and an external trigger is needed.

Arduino Due cannot be bought under Product tabs on this website since quite some time not even in the US. I did buy all my Arduinos as China clones from aliexpress, links below. Perhaps these China closes behave differently to the Dues others reported the resistor had made a difference. Again, what exactly was the difference?

Unknowingly what I found out by measuring power off times and extenal trigger needs I have made use of exactly this feature two weeks ago when when making a film of motor forward/backward left/right demo for 2nd Arduebot with L9110S motor controller: https://www.youtube.com/watch?v=rGf4TnKYh5E&feature=youtu.be

The progam was endless loop and nothing was added to start the program. So I connected power jack and nothing happened because of the missing external trigger. Then I tried to power cycle the power jack with one hand (the other did hold the Android phone camera) and needed needed a little help from the hand holding the Android. After repowering the Arduino program immediately started with roaring motors.

Perhaps the different repowering cycles for the three Arduinos is determined by what is all connected to the Arduino board, but I do not unmount the Due boards from my Arduebots just to find that out.

Summary for me: NO resistors needed for my Arduino Dues, because the behavior did not change, and most importantly, power outages due to voltage spikes will last much less than 4 seconds and therefore restart the program without any changes needed.

Hermann. http://www.aliexpress.com/item/Free-shipping-Due-R3-ARM-Version-Main-Control-Board-for-arduino/1914744005.html http://www.aliexpress.com/item/10sets-lot-For-Arduino-Due-2012-R3-ARM-Version-Main-Control-Board/1736339894.html

I have just re-flashed my Arduino Due after seeing this topic and following the instructions on how to use an Arduino Uno to do this. I am using a Mac running El Capitan and I had to make a couple of adjustments to the command line instructions I found.

The first problem I hit was finding where avrdude was hidden away. After Googling - what did we ever do before the internet! - I found avrdude in the following directory:

/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin

I didn't even know what a package was until today. So the Arduino icon in Applications is actually a kind of package/directory and you have to use the .app suffix to access the directories inside. I copied the avrdude.conf file and the .hex file into the same directory just to be on the safe side.

The other thing I found was that the device name was different on my Mac. Using ttyACM0 didn't work. When I looked at the port listed under Tools in the Arduino software, it was cu.usbmodem1441. I searched the listed devices and found tty.usbmodem1441. I used this in the command line and it worked correctly.

My Due is now working correctly without the need to solder the resistor on and programs run properly on power up without needing to do a reset.

can I use the due itself as an AVR programmer? Or can I use another due as a programmer? I don’t have uno neither mega.

I think no, we cannot use the due as an AVR programmer because the different voltage level.

Adding a bidirectional level shifter to the Due should do, right?

Hermann.

Firstly, big THANKS! to dancombine.

I did the job with my Due from china. This one did the reset after programming via 16u2, it had the correct 1kOhm series resistor, but not after power up, which didn't occur to me some while. The 10k across T3 fixed it all right.

selfonlypath: ... 0603 which I did not have ...

Me neither. But some old PCD from junk pile did offer a 10k small enough. (Smaller ones come from old mobile pcbs, some tin ;) On another occasion I soldered it vertically, after contacting the "upper end" with enamel wire. Good luck! (When do we print/let grow micro bots, due driven of course, that carry enamel wire across PCBs and solder it, to fix the PCB to our findings? :)

Andi

Hi I met this problem too . For solving this problem , I increase the time of board's Reset . I used a 10K resistor and a 100uf capacitor in series and connect common point of them to RESET pin of board. also 1 pin of 10K to 3.3v and minus pin of capacitor to GND

The Problem solved .

Thanks

atrakonline: Hi I met this problem too . For solving this problem , I increase the time of board's Reset . I used a 10K resistor and a 100uf capacitor in series and connect common point of them to RESET pin of board. also 1 pin of 10K to 3.3v and minus pin of capacitor to GND

The Problem solved .

Thanks

Thank you very much! This solution worked for me. Also had the problem that I needed to do a second manual reset for the board to turn on properly. Very easy fix, no tiny soldering or firmware update.

atrakonline: Hi I met this problem too . For solving this problem , I increase the time of board's Reset . I used a 10K resistor and a 100uf capacitor in series and connect common point of them to RESET pin of board. also 1 pin of 10K to 3.3v and minus pin of capacitor to GND

The Problem solved .

Thanks

This was the simplest way to fix this. Even using only the capacitor between reset and ground worked. Before doing this I tried to flash my due without success (it kept displaying verification errors) and my Due clone doesn't even have the T3 mofset to solder the resistor on...

And yes, I know the problem is old but it persists.

atrakonline:
Hi
I met this problem too .
For solving this problem , I increase the time of board’s Reset .
I used a 10K resistor and a 100uf capacitor in series and connect common point of them to RESET pin of board. also 1 pin of 10K to 3.3v and minus pin of capacitor to GND

The Problem solved .

Thanks

Had the same problem here - the presented solution solved it. Picture below
Thanks!

1 Like

I think the problem is with the IC Atmega16U2 on DUE board is loaded with the hex file meant for MEGA2560.
Both the boards work differently, as DUE needs erase pin to be pulled up before programming.
The loaded firmware does not do that, so you have to manually erase it, making it inconvenient.

Following instructions need to be followed in order to do the same.

Go to this site and make necessary connection–

https://www.arduino.cc/en/Hacking/Upgrading16U2Due

The avrdude is located in C:\Arduino\hardware\tools\avr\bin\avrdude.exe

Copy the avrdude.conf file in the same folder as avrdude.exe (Location of conf file is C:\Arduino\hardware\tools\avr\etc

Copy the hex file in same folder as avrdude.exe. (I am attaching correct hex file for this) (change the extension from txt to hex and use it)

The command line given in the website needs to be changed as follows.–

avrdude.exe -C avrdude.conf -c arduino -P COM1 -b 19200 -p m16u2 -vvv -U flash:w:C:\Arduino\hardware\tools\avr\bin\16u2.hex:i

It worked like a charm.

No need of making changes in hardware.

16u2.txt (11.9 KB)

1 Like

I recently bought 2 of these due units from mau’s empire of dirt with black pcb’s and have the power up or cpu reset issue. However, these boards don’t have the ICSP header and so I am stuck. I have tried the 10k and 100mic cap but it didn’t work for me. Is there any other connection to the ICSP pins or have I got a couple of attractive paper weights?

Just my 2 cents:
I had the same problem on an arduino NANO clone, no start until i pressed reset. I solved it using a 1 second delay as first instruction on Setup().

i know, it's an old post. just wanted to say that the above solution works on DUE too. Thanks cloxart. The 10K solder solution is to tricky for me, as well as reprogram 16U2. There are other posts on this subject, but no solution there.

Doone: Had the same problem here - the presented solution solved it. Picture below Thanks!

thak you man, save my DUE. no need special tools. Just 10K resistor and a 100uf capacitor. your picture made the job easy.

A resistor (and eventually a capacitor) make the job nicely for most of the DUE boards.

I tried another solution, without any hardware, simply adding a delay(1000) line just at the beginning of setup() part and it works for my boards.