Arduino Forum

Products => Arduino Due => Topic started by: michaeluna on May 21, 2013, 06:57 am

Title: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: michaeluna on May 21, 2013, 06:57 am
Hi all. Thanks for taking the time to look at this.

I have a Due and I installed the drivers according to these instructions: http://arduino.cc/en/Guide/ArduinoDue

The initial install appears to be successful. I'm running windows 7 and this is what shows in my device manager:
(http://i.imgur.com/TxJgQD6.jpg)

Looks ok, yes?

So I then open the Arduino IDE, select COM6 as my port and the Arduino Due (Programming Port) as the board.

When I attempt to upload the Blink sketch, I get the error message "No device found on COM6". And that's where I'm stuck. Has anyone else had this problem?

(http://i.imgur.com/8Dq2gVS.jpg)

It seems there's some issue with the communication between the Arduino IDE and the SAM3X8E chip. Or it could be the 16u2? I tried reuploading the firmware to the 16u2, and while I was able to complete that operation, the same error occurred.

Any help you can offer is most appreciated!
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: chriskner on May 21, 2013, 02:05 pm
I just went through this on a WinXP box. 

A reboot fixed everything.

-Chris
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: MGOS on May 21, 2013, 02:36 pm
This happened to me a bunch of times lately. Selecting another board, disconnecting & reconnecting the USB and reselecting the due fixes it.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: michaeluna on May 21, 2013, 08:43 pm
Thanks for the suggestions. I tried both of these and no luck. I was really excited for a minute there though thinking the solution was so easy!

Here's to hoping someone else has another solution.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: AdderD on May 21, 2013, 09:00 pm
I have two suggestions:

1. Are you sure you're putting the USB cord in the right socket? There are two and you might have mixed them up.

2. If that doesn't work then try the native port (remember to set that in Arduino IDE as well!) The native port uploads like 10x faster anyway. I pretty much exclusively program my Due's with the native port.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: exedor on May 23, 2013, 09:42 am
I was having the same problem.  It's unclear why.  It was really really bad and irritating but after rebooting and plugging the USB cable into the back of my system things did get quite a bit better but it does still happen now and then.

The COM port shows up but the IDE doesn't see the board.  I think it might be an intermittent bug in the IDE.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Weaverita on Aug 14, 2013, 06:47 am
I am having this exact problem with a new 'due' but none of the suggestions appear to resolve it.  What else can I try?  Mark
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Weaverita on Aug 16, 2013, 10:24 pm
RESOLVED?   Here is something for you folks to try that are having COM errors with 1.5.2 / Due.  This may be what 'fixed it' or something else.  After struggling with trying to get the Due working with the 1.5.2 IDE version on Windows 7, I regressed and installed the old 1.0.5 IDE and tested with an Mega 2560.  Now, the Due with 1.5.2 loads perfectly well through the COM6 port.  Who knows?  Is there something missing in 1.5.2 IDE that was patched up by installing 1.0.5?   Feedback welcome.  Mark  :)
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: emech on Aug 26, 2013, 04:51 am
SOLVED :D

I was having this same problem and it was driving me nuts.
I had tried installing 1.5.2 on three different machines (XP, 2x Win7), re-installing 1.0.5 and loading code to a 2560, rebooting multiple times, replacing the 16U2 firmware (2 other versions), different USB cables  - but nothing worked (except manually erasing and resetting the board).

The other clue was that even when the DUE was recognized and programming proceeded - loading a sketch failed to reset the DUE (manual reset was required a second time).

THEN, I read the post from Aiekakiku http://forum.arduino.cc/index.php?topic=168399#msg1279303 (http://forum.arduino.cc/index.php?topic=168399#msg1279303) and decided to try it.
I shorted out R23 with a small flat blade screwdriver (pressed on the side of R23).

It worked!

I then soldered a short across R23 - and it has continued to work on both my Win7 and XP machines, every time.
The short is not the safest solution and I will try a 1K resistor as a permanent fix.

So this appears to be a design flaw in the DUE. R23 is the wrong value.
Specifically, natural variation of R23 and the 15K pull-up on the SAM3X can result in inadequate margin to the input threshold (Vil) of the NRSTB signal on the SAM3X.
This means some systems work OK, some are intermittent and others fail all the time.

I'd be interested if this fixes other DUE boards that have the same problem.


Many thanks to Aiekakiku for his original post.

______
Andrew


Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: garygid on Aug 28, 2013, 08:48 pm
Is R23 still incorrect on the Due R3 board?

If so, for reliable operation, a 1k resistor should be used?
(could just be soldered in parallel with the existing resistor)

Thanks
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: emech on Aug 30, 2013, 04:59 pm
UPDATE on R23:
I confirmed that changing R23 to 1K does correct the "No device found on COMxx" problem.
It seems to be very reliable (no failures seen in over 100 attempts on multiple computers) - but only one DUE tried.
The R23 change also fixes the reset of the SAM3X after the sketch has loaded.

@garygid: Yes, soldering a 1K in parallel with the existing 10K will result in a 909 Ohm total resistance - which is close enough to 1K. (my soldering skills are not good enough to do this).


However - changing R23 value has an unintended consequence:

The power-on reset of the SAM3X no longer works if the DUE is un-powered for 30sec or more.
I'm not sure why this occurs, but it is very repeatable.
Pushing the reset button on the DUE works - but this is not a compromise I can live with.


FIXING the POWER-ON RESET of the SAM3X:
I noticed that the 16U2 firmware does not reset the SAM3X when the 16U2 is reset on power-up (which seems to be very reliable).
So I added the following code to the 16U2 firmware to reset the SAM3X.
The code is added to the SetupHardware() function, directly after wdt_disable();

Code: [Select]

// assert /RESET to ensure reliable Target power-up reset
setResetPin(true);

TCNT0 = 0;
TCCR0B = (1 << CS01) | (1 << CS00);  // Set prescaler to 64 and start counting (4uS/tick)
while(TCNT0 < 24);   // Wait for approx 100 uS
TCCR0B=0;  // Stop the counter
TCNT0 = 0;  // re-init timer count


On my DUE, I found that the TCOUNT0 value had to be at least 3 for the SAM3X to reset properly (approx 12uS or more).
I chose a TCOUNT0 value of 24 (100uS) to ensure more than enough margin (for my DUE).
The TCOUNT0 value may have to be increased to ensure robustness on all possible DUE component variations.

The firmware fix seems to be reliable (in the 36 hours since I changed the firmware - including two 6+ hour power-downs).

So in summary:
Two items need to be fixed on the DUE to completely solve this problem - R23 value and the 16U2 firmware.

I would be interested if anyone has an alternate solution that is simpler or can confirm that this fixes their DUE.
(I did consider replacing R23 with a diode - but the BOM cost would increase).

______
Andrew

Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: aureliusss on Sep 05, 2013, 11:45 am
what if your solution doesn't work for me?
i changed r23 to 1k and uploaded the firmware you attached but the ide still tells me "No device found on COM"
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: emech on Sep 10, 2013, 03:01 am
@aureliusss: Sorry to hear that it did not work for your board.
I assume that you are trying to connect to your custom built Due board? (From your posts in http://forum.arduino.cc/index.php?topic=181680.msg1381529#msg1381529 (http://forum.arduino.cc/index.php?topic=181680.msg1381529#msg1381529))

Note that the R23 fix and the 16u2 firmware fix are intended for Due boards where you can press the reset button to manually fix the "No device found on COMx" error.
If your system is not recognized by the IDE when trying to download after you press the reset button - there is likely something else wrong.

_______
Andrew
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: garygid on Sep 10, 2013, 07:51 am
Sometimes, if the PC is recognizing your Due's Programming Port,
you just need to completely close and restart the IDE program.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: aureliusss on Sep 10, 2013, 11:14 am
i experienced this thing yet. but not even this "trick" works
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: dezguy on Sep 10, 2013, 03:26 pm
I get that Arduino is for the DIY crowd, but it seems off to me that I should have to short a resistor to get it to do what's advertised. If this is a problem with the board, should this not mean fixing the problem and then recalling/replacing the boards?

I keep running into this problem, and unplugging and re-plugging my board seems to fix the issue. But, after doing it 30 times in an hour I'm starting to notice that the usb port is getting a little wiggly. At this rate, no doubt that port is going to fall off.

Admins? Is this a known hardware problem?

Cheers,
Mike
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Tobe1989 on Sep 11, 2013, 02:59 pm
we change the R23 to 1K, but it didn't work.
Is there anyone solve the problem with this?
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: msemtd on Sep 12, 2013, 02:26 pm
after doing it 30 times in an hour I'm starting to notice that the usb port is getting a little wiggly. At this rate, no doubt that port is going to fall off.


I feared this too, so during development I unplug the other end of my USB cable from the PC to save wear on the Due.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: dezguy on Sep 13, 2013, 06:49 pm
Unfortunately, because of Apple and all of their wisdom, my usb port is on the back of my computer, make it kind of difficult to access.

Admins / Arduino staff - is this a known problem and, if so, are you going to fix it?

Cheers,
Mike
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Federico_Vanzati on Sep 17, 2013, 08:31 pm
Hi all,

The correct value for the R23 resistor is 1k ohm. R23 resistor is used to adapt the 5V logic of the 16u2 to be compatible to the voltage logic of the SAM3x,  the 10k ohm gives completely wrong values to the reset pin.
I want to figure out if it happened a mistake during assembling.

Can I ask to those of you who have experienced the problem to write me the serial number of the Due, you can find on the cardboard box?
You can reply here or write me an email (f.vanzati at arduino.cc)

NB: the serial number is not the number written below the bar code, is on a separate sticker.

Thanks,
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: dezguy on Sep 25, 2013, 09:57 pm
Is there another way to give you the serial number? My wife threw away the box and any associated stickers.

Cheers,
Mike
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Federico_Vanzati on Sep 29, 2013, 12:06 am
Unfortunately there isn't another way to go back to the serial number.
Can you send me a picture and possibly the invoice of the distributor where you purchased the board?

cheers
Federico
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: greghol on Sep 29, 2013, 05:35 am
It makes zero sense to put the serial number on the box but not the board. Exactly for this reason.

Greg
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: dezguy on Sep 29, 2013, 04:47 pm

Unfortunately there isn't another way to go back to the serial number.
Can you send me a picture and possibly the invoice of the distributor where you purchased the board?

cheers
Federico


Federico,

This is a bit silly to have to post this, but here we go (see attached).

Cheers,
Mike

Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Federico_Vanzati on Sep 29, 2013, 05:10 pm
Thank you Mike,
I meant to sent me the things I requested via email to the email I provided in the message above. I'm sorry for not having specified again
I removed the invoice attachment contained in your reply.

We are checking the last batch of Due produced. I'll be able to answer in the coming days
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: dezguy on Sep 29, 2013, 05:13 pm
Thanks Federico,
Mike
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: emech on Sep 29, 2013, 08:31 pm
Hi Frederico,

I assume that you know that the Due schematic on http://arduino.cc/en/Main/ArduinoBoardDue has R23 shown as 10K ?
It may be a documentation mistake and not a manufacturing mistake.

How can we get the documentation fixed?
_______
Andrew
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Federico_Vanzati on Oct 01, 2013, 12:07 pm
@emech: yes it is a documentation mistake that we can easily fix.

@dezguy: can you please measure the values of these resistors: R3,R14,R15,R21,R23?
See the image in the attachment for the reference.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: BriComp on Oct 14, 2013, 01:17 pm
If it's a documentation mistake that can easily be fixed, why hasn't it been fixed? It's two weeks since you acknowledged the error but still no change to the documentation.
Are you trying to ensure that all the Chinese boards don't work properly?
If you are then please think about the many users around the world that buy these boards, myself included.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Palliser on Oct 14, 2013, 04:06 pm
Aren't the input capacitors on the original Italian Arduino Due rated for 16V? Then why 25V? Is Arduino producing boards with 25v? My Due board (D00000721) has only the 16V ones. Regards!
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: AmbiLobe on Oct 15, 2013, 04:27 am
Federico asked "can you please measure the values of these resistors: R3,R14,R15,R21,R23? "

Here are the resistances from my Due board :
R14 1003 ohms
R15 998
R21 1000
R23 995
R3 985 Ohms
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Federico_Vanzati on Oct 15, 2013, 11:14 am
@AmbiLobe:
is your board affected by the uploading problem?
Because I see that the R23 is 1Kohm that is correct.

Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: AmbiLobe on Oct 15, 2013, 01:06 pm
"is your board affected by the uploading problem?"

Summary
Yes. Sometimes the upload serial upload fails and usually it works correctly.

Details
My Due works correctly in many sessions. I bought it at Newark in USA. When I start working on a Sketch the Due works perfectly. I edit then Sketch, plug in the serial cable, upload the instructions to Due, and it is good. I use the Due to test performance. I disconnect the serial cable. I run the Due successfully. I power down the Due. I plug in the serial cable and use the Serial Monitor to receive messages from Due. The messages are shown on my PC video screen as good text messages from Due. I power down. I need to disconnect my custom electronics from the Due using a DB25 connector to enable any uploads. If I keep the DB25 connected to Due from my experimental board, it never uploads, so I disconnect the DB25. I write a new sketch, I plug in the USB cable for upload. Failure ! "No device found on COM7"

I exit the IDE 1.52. I start IDE again. Failure. I disconnect the USB cable and start over to try to upload again. Failure. I power down my PC and boot up everything. It works now. Upload successful.

Sometimes Serial Monitor fails also. Then it works after re-booting computer. It seems intermittent. Re-booting is not alays needed, sometimes, just closing IDE and starting IDE makes serial monitor work.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: dezguy on Nov 23, 2013, 12:03 pm
Bump. Did this ever get resolved?

Cheers,
Mike
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: OnionKnight on Nov 25, 2013, 07:02 am
I had been running my programs fine all day until I finally encountered this problem. This thread seemed to be the most helpful, but it seems like this has been going on for a while.
Since I'm relatively new to arduino, would it be better/easier if I seek a refund on my board?
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: ghlawrence2000 on Nov 27, 2013, 11:03 pm

I had been running my programs fine all day until I finally encountered this problem. This thread seemed to be the most helpful, but it seems like this has been going on for a while.
Since I'm relatively new to arduino, would it be better/easier if I seek a refund on my board?


If you have a clone board, it is situation normal, if you have a 'genuine' arduino board, I think you should try to PM Federico with date of purchase, serial number, and supplier you got your board from.

Graham
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: rishibhatnagar1 on Feb 15, 2014, 08:35 pm
SOLVED

You need to do three very simple things  after connecting the Programming port with the computer/laptop :
1. Press the erase button for about 3 seconds.
2.Press the reset button.
3. Upload the code.

You need to do this every time you want to upload a sketch. Everything else will hopefully work fine after that.

P.s : I think the problem is the board is not erasing the data pre-written or something.
And it is all done. Tried , tested , worked. Cheers !
--Rishi
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Josh_Transistor on Mar 10, 2014, 09:57 pm
I won't say this issue is solved. IT IS *NOT* SOLVED!
Using the Erase Button works but is not the solution to the originating problem.
Especially when debugging or trying things out it's annoying always to access the board itself.

I installed ATMel Studio with Arduino plugin - and from there it works without pressing the "Erase" Button on the Due Board and Resetting. Which is strange cause the Arduino plugin needs the location of the genuine Arduino IDE installation (in my case the latest Beta 1.5.6r2). When calling bossac from the command line it also DOESN'T detect the arduino port. The Arduino *Plugin* seems to do something different. Although i would suggest that the problem lies somewhere in bossac.

The DUE support doesn't seem to be very mature. And it's a strange version of bossac - which itself (the genuine one) has not been updated since a while, so it's a modificated version by the arduino team. I got none of them (neither the "genuine" nor the arduino one) to work.

I think the Arduino IDE with DUE support is called BETA for a reason.  Before r2 I had massively problems with the serial console - in contrast when using other terminal programs - which worked like a charm.
At least that seems to be fixed now.






Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: goat on May 07, 2014, 07:54 am
Thought the power on reset might be fixed with a patch to the 16U2 (first thing that crossed my mind). Thanks. Would be nice if we could figure out why it is not working as it should without the patch, but at least we have a work around.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Grammato on Sep 08, 2014, 08:12 pm
Hello,

Same issue here. The board worked fine for several months but now it's completely unusable. I've tried the different techniques mentionned in this topic with no success. Resistors are 1K as expected. Serial number is D00036196.

Is there something else I can do ?
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Grammato on Sep 10, 2014, 12:56 pm
Hhmm, I've just found out that a jumper wire coming from my breadboard wasn't correctly connected to one of the ground pins of the due...  :smiley-red: Reconnecting it solved the problem. Why did that lead to the "No device found on COMx" error is beyond me, but I think it's worth mentionning it here.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: joseicos on Sep 21, 2014, 07:12 pm
hello, I have the same problem. The reference number is A000062. It works intermittently. Have you solved the problem?
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: artems on Sep 22, 2014, 03:34 pm
I experience the device not found symptom too. It seems to only happen when my i2c is firing off.

The Reset + Erase hold works sometimes for me.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: selfonlypath on Dec 14, 2014, 04:13 pm
Hello, I'm having the same problem, here using a Macinstosh.

Please note that I've 3 DUE's, two of them work perfect when downloading a sketch, the 3rd one almost never downloads and writes "No device found on cu.usbmodem…."

Have this problem been solved since the failed DUE does have 1K resistor ?

Thank you keep an updated solution.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: CopperMasud on Dec 21, 2014, 06:00 pm
i have to use NATIVE PORT ,...................................................
programing port is  not workinggggggggg  :P
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: MarkOne on Dec 23, 2014, 05:27 pm
My experiences with my latest Due:

Problem: I cannot flash the due using the programming port UNLESS i press the erase button on the board first. I do not need to press the reset button, just the erase.
I'm using IDE 1.5.8. The board DOES reset on serial-monitor launch.

Resistances as requested R23 981R, R3 996R, R21 997R, R15 1003R, R14 1023R

Serial number D00045177. Received from SK Pang about Mid December.

Any known fix yet?
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: selfonlypath on Jan 25, 2015, 11:57 am
I've three arduino DUE boards and check all resistance on each, roughly R3 R14 R15 R21 and R23 have 1K value so I don't think the root cause is these resistance, there must be something else maybe a capacitor I suspect.

Why: all my 3 boards do have same resistance but only one does work when downloading a sketch.

In fact, sometimes it will upload ok, I'd estimate say 1 time it flashes CPU over 7 times ail it will not see the port of my MacBook Air.

The other problem to be honest, i've written Federico and no response, this thread has been lasting so the question being if arduino wants to solve the issue !

If downloading via native then it will work always
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: MarkOne on Feb 16, 2015, 08:51 pm
Still no reply on this problem!

Any ideas?
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Yannouk on Feb 28, 2015, 06:54 pm
Hi all,

So I recently bought an Arduino DUE and I too have the same problem.
So far I've managed to upload my code 2 times: first after restarting my computer (I'm guessing this was luck because it worked only once...) and after holding the erase button for 2-3 seconds.

So I thought that maybe there is a problem with the ATMEGA16U2 not being able to erase the code from the SAM3X although it is supposed to do that.
I started looking at the schematics and the EAGLE board design and found a difference between the files and the actual board on the "erase"-path between the ATMEGA16U2 and the SAM3X. But I checked the way it is done on the board and it shouldn't be a problem but you might want to check it again.

I then started looking at the code that is supposed to be programmed on the ATMEGA16U2. But I'm not that good in C so I couldn't discover a lot. But according the piece of code shown here I think it is also supposed to work properly. (this code can be found in "Arduino\hardware\arduino\sam\firmwares\atmega16u2\arduino-usbserial\Arduino-usbserial.c")

Code: [Select]

if (ResetTimer > 0)
{
// SAM3X RESET/ERASE Sequence
// --------------------------
// Between 60 and 120: do erase
if (ResetTimer >= 60 && ResetTimer <= 120) {
setErasePin(true);
} else {
setErasePin(false);
}

// Between 1 and 50: do reset
if (ResetTimer >= 1 && ResetTimer <= 50) {
setResetPin(true);
} else {
setResetPin(false);
}
ResetTimer--;
} else {
setErasePin(false);
setResetPin(false);
}


I'm guessing now that the code loaded in the ATMEGA16U2 might be faulty for some of the boards but maybe that someone with a bit more understanding of C or the schematics could check my thoughts.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Yannouk on Mar 20, 2015, 01:09 pm
Hi all,

So I found a fix for the problem. At least for the version of the problem that I have.
As mentioned before, I could not upload a new code unless I first erase the old one manually even though the ATMEGA16U2 is supposed to do that.
When the chip receive the command of opening the usb communication at baudrate 1200 it is supposed to erase the old code on the SAM3X, but it doesn't.
I found out that when you spam the chip with requests to open the comport it will eventually erase the code on the SAM. So I wrote a batch file that does just that and that sends the new code after having requested 30 times to open the comport at baudrate 1200 and it worked in my case. I can now program my due whitout errors.
I know it's a very ugly fix but it works and might work for other people so if you want to give it a shot I can send you the code and how to implement it in the Arduino IDE.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: eewink on Apr 02, 2015, 06:00 pm
I am having the same issue as well with my Arduino DUE. It has been working well for several months and all of a sudden it would not upload a sketch. Instead the IDE will say "No device found" on the COM port. This is despite the fact that the COM port is actually available in the ports menu option of the IDE. I am using the latest version 1.6.2

Only after pressing the "erase" button can I upload a sketch.

Just a thought. Could we all be experiencing the same problem because we have somehow damaged our Arduino Due? The I/O pins only take 3.3V. Maybe some stray static has caused this problem and "fried" the chip. A possible experiment would be to desolder the microcontroller and resolder a new chip on the board.

Yannouk could I please try your method of using the batch file to spam the Arduino by providing me with the code? Thanks.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: sorova on Apr 09, 2015, 10:02 pm
Just bought my DUE from Robot Shop, made in Italy. Same problem and the fix of re-setting works.

I am using the native USB which is faster anyway. I found when you reset that the COM port changes - look on Device Manager! It only changes once  - for me from COM 16 to COM 15 and then it started working without the reset thing. So I am ok so far.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: germancorrea on Apr 10, 2015, 08:53 pm
I just installed arduino-1.6.3 in my win8.1 buta I am been unable to comunicate with muy arduino due board. When I try to install Arduino Due Prog. Port windows don't find controller driver. I tried all drivers on FTDI USB Drivers and it doesn't work. Any idea please
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: fersical on May 06, 2015, 09:49 pm
Hi all,

" if you want to give it a shot I can send you the code and how to implement it in the Arduino IDE."
Pleaseeee Yannouk!!! Can you Send me the code?

fersical@hotmail.com

Thanks!!!!!
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: hamsafar_a85 on May 26, 2015, 06:51 am
I have same problem, please help me....
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: meab on Jun 09, 2015, 04:30 pm
I have the same problem with my 2 dues. I think no one find the exact solution. When I started to programming my dues, they were working good. However, a little later, they started to give the error "no device found on comxx port". When I plugged the due, the arduino ide recognizes the board. But, while uploading gives that error. Is there any way to test the problem on the board or the firmware on the chips. Any help will be appreciated. Thanks in advance.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: fraser125 on Sep 30, 2015, 02:48 am
I had the same problem that's been described here, I had a 1k Resistor in R23. I tried a few of these steps and found that the batch file was the easiest but unfortunately a working sample wasn't posted. Once again I did NOT modify or re-install any firmware. While I have hardware programmers I wanted a simple "Arduino" solution. What would the average Arduino Hobbyist have on hand. You will need to modify the COM port to whatever you use and I know there are other tweaks that I could make but once it worked I stopped. Have a great day!
Code: [Select]
@echo on
for /l %%x in (0,1,30) do (
mode COM4:12,n,8,1
echo > COM4
)
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: nostar on Nov 02, 2015, 06:46 pm
FYI to all of this thread that it appears that the problem discovered (and fixed) by emech in post #10 affects all of the R3 models of the Due.  I happen to have a number of R3 models and the mysterious R3-E models, and can confirm that all of my R3s will not power up and run, and all of my R3-Es will.  I also can confirm that the R3s all work correctly after applying the code fix from #10 and re-flashing the 16u2.  The details are here:

http://forum.arduino.cc/index.php?topic=256771.msg2460811#msg2460811

I will repeat the question here, since a number of people have asked, and noone has received an answer:

WHAT IS THE DIFFERENCE BETWEEN THE R3 and R3-E??
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: hannes93 on Nov 17, 2015, 10:00 am
I have the Due R3-E model and it works fine with the Arduino IDE. There are no problems uploading my sketches. I switched now to Eclipse and installed this Arduino plugin from:
http://www.baeyens.it/eclipse/
If I want to upload the code I get the error "No device found on COM6" but if I press erase on the board and try the upload again it works. What could have gone wrong by changing the IDE?
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: MrAl on Nov 17, 2015, 11:05 am
Hi,


First, for anyone that has to unplug and then plug back in their boards, you can get a switched hub that turns the power lines off.  That means you can switch it off and then back on without pulling out the USB plug and thus reduce wear.  USB plugs/jacks will wear out eventually.

But where is this R23 talked about in this thread?  That is, where on the PC board exactly?  Can someone point it out?
Some of the resistors are very tiny and not marked.
Also, the schematic i downloaded shows R23 to be a 1k resistor already.


Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: hannes93 on Nov 17, 2015, 11:26 am
I attached a photo with the schematics of the board and marked the resistor. It's next to the ATmega 16u2 microcontrollerchip
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: MrAl on Nov 18, 2015, 10:47 am
Hello there,


Thanks for the drawing and that helped find the right resistor.
What happened was i looked at the schematic and saw "R23", but it was not marked on the board, and i tried to figure out where pin 1 was on the 16u2 chip but the marking is either not there or gone.  So there is no way to tell where pin 1 is on that chip without tracing out other pins to find out where they go.  All the corners of the chip are square no angle, and no indentation and no triangle (all 3 of the possible markings of that chip).
I was able to verify by tracing out what i thought was pins 1 and 2 that go to the crystal or oscillator.

I guess i can measure this with an ohm meter, as the resistor body is so small and there are no markings on the resistor either.  I wonder if an unpowered board can take that kind of measurement though, like say 1.5v across that resistor with no power applied anywhere else.  I guess i'll have to see what current my metes put out when testing for Ohms with a resistor.

Would be interesting to see what value they placed on this particular board.


Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: hannes93 on Nov 19, 2015, 09:21 am
There is an easier way to figure this out. If you look at the schematics of the Due you can see that R23 is connected to Pin PC7 of the Atmega16U2.
If you google now for the pinout of the MPC you will find the PC7 pin very quick.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: dancombine on Dec 08, 2015, 06:27 pm
Hi all,

Some older versions of the DUE do not have a resistor (10k) between +3.3V and the ERASE signal. This resistor is found in the schematic as R99 on the newer boards, but the older boards do not have it.

Earlier, the Arduino team reduced the value of R23 from 10k down to 1k to fix another issue. But that created as side effect a boot problem, where one of the symptoms is no COM port found.

The solution is to add R99 of 10k between +3.3V and the ERASE signal.

See this thread where I posted the details of the fix:
http://forum.arduino.cc/index.php?topic=256771.new#new

-D

Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: SrAnderson on Jan 25, 2016, 10:58 pm
Automatic (Software) Reset

The SAM3X microcontroller differs from AVR microcontrollers because the flash memory needs to be erased before being re-programmed. A manual procedure would involve holding the erase button for a second, pressing the upload button in the IDE, then the reset button.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: ellbur on Jan 27, 2016, 06:49 pm
I just want to post what worked for me, in case it helps someone.

I've been programming the Arduino Due manually using the "mode" and "bossac.exe" commands:

> cmd.exe /c "mode COM3:1200,n,8,1"
> bossac.exe --port=COM3 -U false -e -w -b firmware.bin -R


And I had been getting the error "No device found on COM3", even though the device appeared in device manager (and "mode" succeeded).

The particular magic-sauce that made it work was:

1. Run "mode"
2. Sleep 100 ms
3. Run "mode" again
4. Sleep 50 ms
5. Run bossac

I just randomly guessed at those timings; I have no idea whether different values would work as well.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: WillieWortel on Jan 27, 2016, 10:13 pm
Hi all!

Maybe some new information, i did not find anything like it in the entire post: i got the same problem when there is a load on IO0 (or RX0). When i connect a resistor of 4K7 on RX0 to ground, i get "no device found". When i disconnect > download ok.

Found it while trying to program him "in circuit".. :o

Anyone same experience?

Willie

Edit: PS: 10K does the job also, so just a load is prohibiting the download it seems...:-(
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Slider on Feb 26, 2016, 12:00 pm
Hi all!

Maybe some new information, i did not find anything like it in the entire post: i got the same problem when there is a load on IO0 (or RX0). When i connect a resistor of 4K7 on RX0 to ground, i get "no device found". When i disconnect > download ok.

Found it while trying to program him "in circuit".. :o

Anyone same experience?

Willie

Edit: PS: 10K does the job also, so just a load is prohibiting the download it seems...:-(
Very interesting results!
I just posted a very similar thread yesterday https://forum.arduino.cc/index.php?topic=381866.0 (https://forum.arduino.cc/index.php?topic=381866.0)

I to get No Device errors when I want to program the Due in circuit.
And I use all 4 serial port, each Rx is connected to GND through a resistor (pulldown).

While I did serperate the global GND to the Due board, all the pulldown resistors are still connected to eachother, in a local GND circuit so to say.


According to the Arduino Due info: https://www.arduino.cc/en/Main/ArduinoBoardDue (https://www.arduino.cc/en/Main/ArduinoBoardDue)

Quote
The Programming port is connected to an ATmega16U2, which provides a virtual COM port to software on a connected computer (To recognize the device, Windows machines will need a .inf file, but OSX and Linux machines will recognize the board as a COM port automatically). The 16U2 is also connected to the SAM3X hardware UART. Serial on pins RX0 and TX0 provides Serial-to-USB communication for programming the board through the ATmega16U2 microcontroller. The Arduino software includes a serial monitor which allows simple textual data to be sent to and from the board. The RX and TX LEDs on the board will flash when data is being transmitted via the ATmega16U2 chip and USB connection to the computer (but not for serial communication on pins 0 and 1)
.

So, the when we plugin the programming port to the computer, Serial0 is being used for programming.
In circuit we pull down Rx pin, so this causes all data send to the Due to become distored.

I will test this tonight and post the results :)


Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Slider on Feb 26, 2016, 05:38 pm
Confirmed, problem is fixed :D

Thanks Willie for your findings!
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: pjrc on Feb 28, 2016, 02:47 am
This may be unrelated, but you should probably be aware Windows 2000, XP, 7 and 8 have a bug in USBSER.SYS where the COM port appears properly but is unable to work if the USB cable was unpluged ("surprise removal" in Microsoft's lingo) while a program had the port open.  While troubleshooting USB problems on those operating systems, this bug can really make things much more confusing.

Microsoft fixed this bug in Windows 10.

Here's a video demo.

https://www.youtube.com/watch?v=DRmvUsa2xuU (https://www.youtube.com/watch?v=DRmvUsa2xuU)
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Slider on Feb 29, 2016, 03:58 pm
Thnx for sharing Paul.

I did not mention this, but I'm running Windows 10. So appearently, this is not a cause of the problem I had with programming.
And it's fixed anyway, but disconnecting the pulldown resisitor on de Rx0 pin while programming :)
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Gryphon88 on Apr 09, 2016, 06:02 pm
Hello everyone,

I encounter the "No device on port" problem, too. After several months of proper working (except start-on-power on error that I usually "fixed" with Reset button press") the device didn't start and I was unable to upload new sketch.

Problem statement:
1. Appeared eventually, after several months of proper function
2. Second DUE R3 I see the exact problem
3. Due programming port appears both in device manager and in Arduino IDE (now 1.6.8, prev 1.6.1, Win7 and WinXP)
4. Due native port appears in device manager as "unknown device"
5. Bossac (both in Arduino IDE and when called directly from command line) says "No device on port"
6. Followed loop-back instructions (the pinned topic in Troubleshooting) and everything I send using serial monitor to Arduino is echoed back immediately.
7. The Arduino COM port is opened at 1200 with no problems. When I send something in Putty at 115200 RX led blinks, at 1200 - doesn't.

What I tried (and what didn't help, and I restored to previous state):
1. Pressing Reset and Erase buttons many times in different combinations.
2. Tested R23, R3, R14 and R15. All of them are 1kOhm
3. Put 10 mkF capacitor between Reset pin and ground
4. Tried putting 10kOhm resistor at T3 (my board doesn't have R99)

What should I try next to reanimate my boards?

Best,
Serge
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: hussaa1 on Jul 06, 2016, 02:04 pm
Hi guys!, just to support this solution;

I had the same issue with my new Arduino DUE R3 board as;


"No device found on com 15" during programming while the Arduino IDE was detecting the board OK.

Thanks to "Aiekakiku", shorting R23 allowed Arduino IDE to write my code to the board.

However, since then I have rebooted my PC and DUE is programming every time. Hurray!

Best regards
hussaa1
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: vanfly10 on Aug 04, 2016, 05:48 pm
Hello,

Where is R23
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: ntomlin on Aug 16, 2016, 04:43 am
Maybe unrelated, but sometimes everything works for me and sometimes, right at the very end of an upload, my COM port would change itself and then give an error (windows 10). In case it helps, the only consistent fix I found is to open the arduino program from the program list (not by clicking on a .ino file) and then opening files from the arduino file menu. No idea why this works or what is going on...
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: marcovansteen on Sep 06, 2016, 11:07 pm
Hey Willie,

You're The Man !!

This is exactly what fixed it in my situation.
In my setup I pulled the RX0 pin down to GND with a 1 kOhm resistor.

Aparently the 16U2 can pull this RX pin to GND using IC10.
Apart from the programming issue, to me it looks a bit "rude" to short an input and possibly overload external devices sending into RX pin.

Another suspect thing is the timing of IC10 especially since the input and "not(output enable) pins are shorted. Now the propagataion delay will determine what happens.
When the input (net 16U2-TX) toggles from low to high, the output may go: low->high->high-Z. With a pull-down resistor the high-Z becomes 'low'. so low->high->low instead of an intended low->high-Z.
Maybe this corrupts the SAM's UART state.
Any way this is just a theory that I did not test.

Marco
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Dmitry_Ai on Sep 13, 2017, 10:47 am
Sorry, but I didn't found the answer if I have a problem "No device found on COM3" what I need to do.

:(

May be I don't understand some of topics?

I tried to press "erase" and "reset" but nothing happens.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: JDS3D on Oct 27, 2017, 10:51 am
Hi all I'm new to here I just wanted to post what worked for me. So I have been printing with arduinos for awhile now and have been using a due with my own modified and diy built ramps fd v2.2. It had been working just fine for months, then I upgraded windows 10 from 1607 to 1703 and it stopped loading code. I kept getting error no device found on com3. The weird thing was if I hooked it up to my wife's all in one with 1607 it would load fine. I played around with it for days and finally stumbled across this, I loaded the arduinos isp example code through the native port and then tried it on the programming port and what do you know I was able to load code! So then I tried my repetier firmware and it worked! Thanks I hope this works for others.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Capiten87 on Nov 20, 2017, 03:15 pm
Hi all I'm new to here I just wanted to post what worked for me. So I have been printing with arduinos for awhile now and have been using a due with my own modified and diy built ramps fd v2.2. It had been working just fine for months, then I upgraded windows 10 from 1607 to 1703 and it stopped loading code. I kept getting error no device found on com3. The weird thing was if I hooked it up to my wife's all in one with 1607 it would load fine. I played around with it for days and finally stumbled across this, I loaded the arduinos isp example code through the native port and then tried it on the programming port and what do you know I was able to load code! So then I tried my repetier firmware and it worked! Thanks I hope this works for others.
Hi

Can you tell us what repetier firmware are you talking about?

Is it the batch 30 cycle thing?

Can you post the code please ^^

Cheers, Luís Pereira.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Tillinn on Dec 04, 2017, 10:16 pm
Hi all.
I bought the Arduino Due R3 from aliexpress a while back and just now wanted to try it out.
I have made some minor projects with my uno with everything going fine.
I changed my board on the IDE (1.8.5) using the SAM (1.6.11) and in the bottom of the IDE it says: "Arduino Due (Programming Port) on COM8" but when I try to upload sketch I have the same problem as before. It says "No device found on COM8 An error occured while uploading the sketch".

As a total amateur and beginer hobbyist I don't have the means/skill to mesure the R23 let alone replace/short it.

It works with the Erase/Reset solution but I think that is kind of tedious.

Is there something with the current version of windows 10 (1703) that is cousing this issue?

Please keep posting and let us know if you find a solution.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: IRV5700 on Jan 24, 2018, 04:49 pm
I have the same problem and i solve it by pressing the erase button during the bigining of the upload. Now everything iscorrect.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: Forsas on Mar 07, 2018, 11:49 am
hola a todos, encontre el error por el cual no detecta el puerto, el CI SN74LVC1G125DCKR estaba al revés y sin soldadura.  espero les sirva.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: richard_sandeau on Apr 09, 2018, 09:00 pm
Hi everybody,

I've got an other (basic ?) solution
I had the same problem during the all day, and all the solutions here did not worked.

But i disconnected the led + resistor attached to the pin 1 (TX0) and it seems to work now.

It's maybe for the same reasons that we can not attached the pin 0 (RX0) with a resistance (like someone said earlier).
Hope it will worked for a long time, if my solution isn't working i will say it to you.
Title: Re: Due appears as COM6 port but gives error "No device found on COM6" on upload
Post by: fnb111 on Jun 07, 2019, 03:37 am
I have the same problem and i solve it by pressing the erase button during the bigining of the upload. Now everything iscorrect.
Thanks for that. That fixed the problem