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 to Arduino Leonardo doesn't work (Read 1566 times)
4Queens
Newbies
*
Offline


Posts: 2
Joined: Sep 13th, 2023
Upload to Arduino Leonardo doesn't work
Sep 15th, 2023 at 7:49pm
Print Post  
Using:
- Visual Studio 2022
- Latest Visual Micro Version
- Board: Leonardo

Uploaded the same programm via same comport with the Arduino IDE and it works reliable.
With VS2022 and Visual Micro not.
I've also try another Leonardo hw-board.

No idea what to do.


  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload to Arduino Leonardo doesn't work
Reply #1 - Sep 15th, 2023 at 8:26pm
Print Post  
Please switch on the property mentioned in the yellow box near the top of the page and post the output again.

Also, as a test, click the reset button on the board when the upload starts, of just before. Does that upload?
  
Back to top
IP Logged
 
4Queens
Newbies
*
Offline


Posts: 2
Joined: Sep 13th, 2023
Re: Upload to Arduino Leonardo doesn't work
Reply #2 - Sep 15th, 2023 at 9:36pm
Print Post  
Reset Button has no effect.


Compiling 'UGM_IO_Device' for 'Arduino Leonardo (leonardo)'
Build Folder: se"
 
Program size: 14600 bytes (used 51% of a 28672 byte maximum) (1,22 secs)
Minimum Memory Usage: 994 bytes (39% of a 2560 byte maximum)
 
Tip: Your Project is using the old Visual Micro Intellisense System.
     Upgrading your project will greatly improve Intellisense Errors and Suggestions.
Read More: https://www.visualmicro.com/page/Upgraded-Intellisense-System-in-Visual-Micro.as...
Uploading 'UGM_IO_Device' to 'Arduino Leonardo (leonardo)' using 'COM3'
Uploader started for board Arduino Leonardo (leonardo)
Upload method will be: bootloader
Uploading via Bootloader 
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
PORTS {COM3} / {COM3} => {}
ino17\bin\avrdude rduino17/etc/avrdude.conf" -v -V -patmega32u4 -cavr109 "-PCOM3" -b57600 -D ease/UGM_IO_Device.ino.hex:i"
avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch
         System wide configuration file is uino17/etc/avrdude.conf"
         Using Port                    : COM3
         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: .avrdude: butterfly_recv(): programmer is not responding
Upload timed out waiting for a response

The uploader process failed
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding




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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload to Arduino Leonardo doesn't work
Reply #3 - Sep 15th, 2023 at 10:20pm
Print Post  
You need to switch this on and then attach or email the output as a .txt file.

vMicro > Compiler > Show Build Properties

Make sure the serial monitor is not open in the arduino ide (i doubt it is). Thanks

« Last Edit: Sep 15th, 2023 at 11:15pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload to Arduino Leonardo doesn't work
Reply #4 - Sep 19th, 2023 at 10:19pm
Print Post  
The requested output will be usefull but please also try this..

Create a local board.txt and add the following line to it

upload.use_1200bps_touch.SetDTRFalse=true

Click save and then try the upload

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint