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
Hot Topic (More than 8 Replies) feather M0 - Unable to doscver the upload port (Read 4891 times)
RocketNut
Junior Member
**
Offline


Posts: 16
Joined: Sep 16th, 2016
feather M0 - Unable to doscver the upload port
Sep 21st, 2016 at 7:39pm
Print Post  
Attached screen shot of the IDE. You will notice the board type (Adafruit Feather M0 Adalogger (Native USB port) is right and port 3 is open . It look's it's open but I can not upload or get the serial monitor to open. Shocked

« Last Edit: Sep 21st, 2016 at 8:29pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: feather M0 - Unable to doscver the upload port
Reply #1 - Sep 21st, 2016 at 8:38pm
Print Post  
Hi,

I split into a new thread so not to be confused with previous completed questions.

The project will attempt to remember serial ports (for good reason) so the question of what ports are available is only answered by dropping down the ports list?

Selecting native USb means the upload will first look for the current com port then send a message to the board to reboot into programming mode. Once a new COM port has been detected we know the M0 is in programming mode and the upload is attempted. This workflow is common to boards that use native usb and Arduino Leonardo.

Furthermore, sometimes native usb boards get stuck in bootloader mode or can be placed into bootloader mode by double tab the reset button. In this case the different/bootloader COM port will be available for selection in the serial ports list. 

If visual micro doesn't detect a new port as a result of the "bootloader message" it will assume the currently selected port is the bootloader port then perform the upload.

In this case the error suggests your ports list is empty (windows telling visual micro that no COM ports are connected). Is this correct? Is your ports list empty? Is COM3 not available?

I it is true that your pc isn't showing the a COM port for the board then try double tapping the reset and seeing is a COM port appears. If it does then select it, do the upload then a new/different COM port will be available for future use.

Let me know what doesn't make sense. It's not clear from your question if you were aware of the special characteristics of leonardo/nativeusb boards.

  
Back to top
IP Logged
 
RocketNut
Junior Member
**
Offline


Posts: 16
Joined: Sep 16th, 2016
Re: feather M0 - Unable to doscver the upload port
Reply #2 - Sep 21st, 2016 at 9:36pm
Print Post  
In this case the error suggests your ports list is empty (windows telling visual micro that no COM ports are connected). Is this correct? That's correct

Is your ports list empty? Clicking on the list button (next to the com port) displays no other ports apear.

As for COM port 3 I don't know if is available.

As for dual clicking the board reset button.The board LED flashes. Then I get message that Windows did not recognize the USB device. 

This all new to me. I just started programing less then 2 months ago. Every thing seem to working just fine, then out of the blue this problem pop up. Maybe I should mention the sketch I have been working on is over 700 lines
« Last Edit: Sep 21st, 2016 at 9:39pm by RocketNut »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: feather M0 - Unable to doscver the upload port
Reply #3 - Sep 22nd, 2016 at 9:44am
Print Post  
Sounds like you need to install usb drivers. Follow the adafruit install guide for your board

Visual micro does what the arduino ide does. So if you get it to work in the arduino ide it should be working in visual micro.

Please let me know if that is not the case.

Thanks
  
Back to top
IP Logged
 
RocketNut
Junior Member
**
Offline


Posts: 16
Joined: Sep 16th, 2016
Re: feather M0 - Unable to doscver the upload port
Reply #4 - Sep 22nd, 2016 at 2:55pm
Print Post  
When I fried up this morning and fried up, I found it is showing it found the board on com 4. I still can not upload tho. The attachment show it can not open the port!!
« Last Edit: Sep 22nd, 2016 at 2:57pm by RocketNut »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: feather M0 - Unable to doscver the upload port
Reply #5 - Sep 23rd, 2016 at 1:14pm
Print Post  
Hi,

Your image shows the serial monitor which correctly might or not be able to open the port depending on the code you have used.

If the monitor is opening after upload then please change the tool bar from Debug to Release

When the monitor is off you will more easily see the Micro Build output which should be showing a successful upload.

I suggest you leave the debug off until you become a little more familiar with the board and upload tools/messages.

Does this make sense or have I missed the point?

Thanks
  
Back to top
IP Logged
 
RocketNut
Junior Member
**
Offline


Posts: 16
Joined: Sep 16th, 2016
Re: feather M0 - Unable to doscver the upload port
Reply #6 - Sep 23rd, 2016 at 2:54pm
Print Post  
OK done that (Debug -> Release). When I tried to upload I get this massage

Compiling 'DataLoger_V2' for 'Adafruit Feather M0 (Native USB Port)'

Program size: 20,332 bytes (used 8% of a 262,144 byte maximum) (3.11 secs)
 
Uploading 'DataLoger_V2' to 'Adafruit Feather M0 (Native USB Port)' using 'COM4'
Unable to 'touch' hardware serial port: COM4. Now assuming selected port is bootloader port. This might still fail, have you got the correct board selected?
The uploader returned an error
No device found on COM4
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: feather M0 - Unable to doscver the upload port
Reply #7 - Sep 23rd, 2016 at 3:26pm
Print Post  
Can I see your ports list when it is dropped down

Thanks
  
Back to top
IP Logged
 
RocketNut
Junior Member
**
Offline


Posts: 16
Joined: Sep 16th, 2016
Re: feather M0 - Unable to doscver the upload port
Reply #8 - Sep 23rd, 2016 at 3:40pm
Print Post  
My shot screen app closes the port list.  There is only one option COM 4 -Adafruit Feather M0

There only port listed Adafruit Feather M0

May be we do a teem connection so you can take over my  machine. Then you look at my system possibly finding out what the problem is.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: feather M0 - Unable to doscver the upload port
Reply #9 - Sep 23rd, 2016 at 4:08pm
Print Post  
Does uploading from Arduino ide work?
  
Back to top
IP Logged
 
RocketNut
Junior Member
**
Offline


Posts: 16
Joined: Sep 16th, 2016
Re: feather M0 - Unable to doscver the upload port
Reply #10 - Sep 23rd, 2016 at 4:13pm
Print Post  
The IDE will not upload either. I get this error message:)
« Last Edit: Sep 23rd, 2016 at 4:13pm by RocketNut »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: feather M0 - Unable to doscver the upload port
Reply #11 - Sep 23rd, 2016 at 4:17pm
Print Post  
Double click reset button do the led pulses. Then select the new port that appears in the port list. Then try the upload
  
Back to top
IP Logged
 
RocketNut
Junior Member
**
Offline


Posts: 16
Joined: Sep 16th, 2016
Re: feather M0 - Unable to doscver the upload port
Reply #12 - Sep 23rd, 2016 at 4:36pm
Print Post  
Huston the clock is rounding. It uploaded with out errors. 

This the compile/upload message:
Compiling debug version of 'DataLogger_V2RevC' for 'Adafruit Feather M0 (Native USB Port)'

Program size: 17,552 bytes (used 7% of a 262,144 byte maximum) (3.17 secs)
 
Uploading 'DataLogger_V2RevC' to 'Adafruit Feather M0 (Native USB Port)' using 'COM3'
Atmel SMART device 0x10010005 found
Device       : ATSAMD21G18A
Chip ID      : 10010005
Version      : v2.0 [Arduino:XYZ] Mar  5 2016 17:46:52
Address      : 8192
Pages        : 3968
Page Size    : 64 bytes
Total Size   : 248KB
Planes       : 1
Lock Regions : 16
Locked       : none
Security     : false
Boot Flash   : true
BOD          : true
BOR          : true
Arduino      : FAST_CHIP_ERASE
Arduino      : FAST_MULTI_PAGE_WRITE
Arduino      : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
done in 0.826 seconds
Write 17876 bytes to flash (280 pages)
[======                        ] 22% (64/280 pages)
[=============                 ] 45% (128/280 pages)
     The upload process has finished. via 'COM4'
[====================          ] 68% (192/280 pages)
[===========================   ] 91% (256/280 pages)
[==============================] 100% (280/280 pages)
done in 0.106 seconds
CPU reset.


Is jumping between COM 3 and COM 4. Some times it uploads on COM 4 other times COM 3

The status tells me COM port did not open.

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
RocketNut
Junior Member
**
Offline


Posts: 16
Joined: Sep 16th, 2016
Re: feather M0 - Unable to doscver the upload port
Reply #13 - Sep 23rd, 2016 at 4:44pm
Print Post  
IDE still will not upload. I get the same error message I already post.

The board seems to be working becuase my test LEDSs are blinking properly. Just can see the any data in the serial monitor.
« Last Edit: Sep 23rd, 2016 at 4:59pm by RocketNut »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: feather M0 - Unable to doscver the upload port
Reply #14 - Sep 23rd, 2016 at 4:56pm
Print Post  
That's uploading okay. The board is supposed to jump between ports but you shouldn't need to be affected by it. Previously it wasn't auto jumping so I explained how to reset and make clean upload. Now you should be able to switch the loft back to original and it should auto switch during upload.


Please keep the serial monitor closed so as not to confuse your clear view of the upload process
  
Back to top
IP Logged
 
RocketNut
Junior Member
**
Offline


Posts: 16
Joined: Sep 16th, 2016
Re: feather M0 - Unable to doscver the upload port
Reply #15 - Sep 23rd, 2016 at 5:11pm
Print Post  
Thank you it seems to working now. Smiley

What do you think what was wrong. I just want to make sure I do that again.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: feather M0 - Unable to doscver the upload port
Reply #16 - Sep 23rd, 2016 at 5:20pm
Print Post  
Sometimes native usb boards can have a problem where they won't auto switch port. It shouldn't happen often at all but if it does double click and force into upload mode
  
Back to top
IP Logged
 
RocketNut
Junior Member
**
Offline


Posts: 16
Joined: Sep 16th, 2016
Re: feather M0 - Unable to doscver the upload port
Reply #17 - Sep 23rd, 2016 at 6:09pm
Print Post  
Could be the bootloader? May be I did some that messed up the bootloader.

Side note IDE is still working. It hangs up. 

Also when I change a be of code to help debug my sketch. it not change the results on the board.
I comment out the bulk of the LOOP() and entered the while loop. hen I up loaded the LED did not blink properly.

The LEDs blink in the old partern!!



  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint