Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can't upload to DUE native USB port (Read 7146 times)
Dave Leddon
Junior Member
**
Offline


Posts: 17
Location: Danville, CA
Joined: Jun 11th, 2014
Can't upload to DUE native USB port
Jun 16th, 2014 at 3:37am
Print Post  
I thought I would attempt to use the second USB port on the DUE for uploading and debugging, saving the programming port for another purpose.  The code uploads just fine on the programming port but when I switch to the other port I get this rather ambiguous error message:
Couldn’t find Leonardo on the selected port. Check that you have the correct port selected.  If it is correct, try pressing the board's reset button after initiating the upload.
  
Back to top
 
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Can't upload to DUE native USB port
Reply #1 - Jun 16th, 2014 at 6:46am
Print Post  
I think that the other port is meant to be a devices port. Things  like keyboard or mouse or whatever is on the list of what the port can cater for. The programming port is programmed to provide the due identity and I would think that you are best off to stay with the programming through that port. I might be wrong but I did not think that you could program the device through the system port. The boot loader is configured to run on the programming port only.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload to DUE native USB port
Reply #2 - Jun 16th, 2014 at 2:02pm
Print Post  
Did you see that there are two entries in the boards list for the Arduino Due? 

You have to use the correct one for the port you are using.
  
Back to top
IP Logged
 
Dave Leddon
Junior Member
**
Offline


Posts: 17
Location: Danville, CA
Joined: Jun 11th, 2014
Re: Can't upload to DUE native USB port
Reply #3 - Jun 16th, 2014 at 2:05pm
Print Post  
Now I'm confused.  I can upload to the DUE native port using the Arduino Ide and it is an option on your board list so one assumes that this should work.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload to DUE native USB port
Reply #4 - Jun 16th, 2014 at 4:37pm
Print Post  
Hi,

The entire build and upload process is defined by the arduino config files that Visual Micro reads and uses. There is no possibility for us to do anything different than what is defined.

So I am confused too  Smiley
  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Can't upload to DUE native USB port
Reply #5 - Jun 16th, 2014 at 6:26pm
Print Post  
Guys
The Arduino documentation says that it can be done with some special conditions to be met but they recommend that you use the programming port. That is what it is intended for. Programming the unit via the system port is not trivial and they warn against corrupted flash that could occur.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload to DUE native USB port
Reply #6 - Jun 16th, 2014 at 6:33pm
Print Post  
I just found that the debugger fails with the native port because is uses a different Serial object in the Arduino code.

You will need to switch the debugger off "tools>options>visual micro>automatic debugging" if you have it enabled.

Sorry, fix in next release. 

Thanks Marius for the warning, it makes sense for users to not use the native port if they can help it
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload to DUE native USB port
Reply #7 - Jun 17th, 2014 at 12:31am
Print Post  
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint