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 Upload fail with Arduino Micro (Read 9286 times)
Claude Ferrari
Newbies
*
Offline


Posts: 3
Joined: Sep 23rd, 2016
Upload fail with Arduino Micro
Sep 23rd, 2016 at 1:01pm
Print Post  
Hi all !

I'm using Visual Micro in VS 2015 (community, Version 14.0.25425.01 Update 3) and everything is fine, thank you very much for this tools which is so great !

But recently I faced a problem with Arduino Micro, uploading doesn't work. Here is what I get in the output window :
Code
Select All
Uploading 'TestUpload' to 'Arduino/Genuino Micro' using 'COM55'
Uploader started for board Arduino/Genuino Micro
Upload method will be: bootloader
Uploading via Bootloader
Error attempting to reset the microcontroller on port COM55
Unable to 'touch' hardware serial port: COM55. Now assuming selected port is bootloader port. This might still fail, have you got the correct board selected?
PORTS {COM56,COM55} / {COM56,COM55} => {}
PORTS {COM56,COM55} / {COM56,COM55} => {}
... Many lines like those...
PORTS {COM56,COM55} / {COM56,COM55} => {}
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude -V "-CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega32u4 -cavr109 -PCOM55 -b57600 -D Upload.ino.hex:i"
Upload failed
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch
         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
         Using Port                    : COM55
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
avrdude: ser_open(): can't open device "\\.\COM55": Accès refusé.
avrdude: ser_send(): write error: sorry no info avail 


("Accès refusé" means in French : "access denied")

I can't understand why, I've already tried this :
- Reboot everything
- Change Arduino Micro and USB cable
And knowing that :
- With the Arduino IDE (1.6.11) it works !! I can upload !
- With an Arduino UNO it works with Visual Micro.

Thank you for your help...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload fail with Arduino Micro
Reply #1 - Sep 23rd, 2016 at 1:18pm
Print Post  
Hi,

Firstly pleas make sure you are running the latest Visual Micro version

In the arduino ide please switch on file>preferences>upload verbose

Then upload and post the output

Thanks
  
Back to top
WWW  
IP Logged
 
Claude Ferrari
Newbies
*
Offline


Posts: 3
Joined: Sep 23rd, 2016
Re: Upload fail with Arduino Micro
Reply #2 - Sep 26th, 2016 at 8:03am
Print Post  
Hi !

That's very strange ! Today it's working Huh I've changed nothing since my last post : my Visual Micro was already up to date (1609.20.0) and I just set "upload verbose" in the arduino ide.

Even if it's working I post the output, maybe you will se something. Anyway thank you for your answer !


Code
Select All
Uploading 'BlinkySD' to 'Arduino/Genuino Micro' using 'COM58'
Uploader started for board Arduino/Genuino Micro
Upload method will be: bootloader
Uploading via Bootloader
PORTS {COM58} / {} => {}
PORTS {} / {COM59} => {COM59}
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude -V "-CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega32u4 -cavr109 -PCOM59 -b57600 -D SD.ino.hex:i"
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch
         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
         Using Port                    : COM59
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
         Programmer Type : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.
Programmer supports the following devices:
    Device code: 0x44
avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9587
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as CB
avrdude: reading input file "
avrdude: writing flash (9666 bytes):
Writing | ################################################## | 100% 0.78s
avrdude: 9666 bytes of flash written
	The upload process has finished. via 'COM59'
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as CB
avrdude: safemode: Fuses OK (H:CB, E:D8, L:FF)
avrdude done.  Thank you. 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload fail with Arduino Micro
Reply #3 - Sep 26th, 2016 at 11:34am
Print Post  
I think that previously windows had not released COM58

Notice the board normally uses one COM but when uploading jumps to a different COM

If that happens again then set the COM port to the 2nd COM (COM59) then upload will work.

Sometimes the boards that jump from COM to COM have this issue but not very often.
  
Back to top
WWW  
IP Logged
 
Claude Ferrari
Newbies
*
Offline


Posts: 3
Joined: Sep 23rd, 2016
Re: Upload fail with Arduino Micro
Reply #4 - Sep 27th, 2016 at 6:42am
Print Post  
Ok, thank your for this information !
  
Back to top
 
IP Logged
 
Erik Bongers
Newbies
*
Offline


Posts: 4
Joined: Aug 1st, 2017
Re: Upload fail with Arduino Micro
Reply #5 - Aug 2nd, 2017 at 7:05pm
Print Post  
For those getting started, that received the above error. In my case it was indeed the wrong board that was selected. Was a bit lost there. You can change the board in the menu Tools/VisualMicro or menu vMicro.
Oh, apparently Arduino Yun is not the same as Arduino Uno Grin
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint