# Error on Leonardo deployment

**URL:** <https://forum.xod.io/t/error-on-leonardo-deployment/2655>\
**Category:** Uncategorized\
**Created:** [October 3, 2019, 9:47pm UTC](https://forum.xod.io/t/error-on-leonardo-deployment/2655 "2019-10-03T21:47:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmsstudios](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/rmsstudios/32/1532_2.png) [@rmsstudios](https://forum.xod.io/u/rmsstudios)\
**Post date:** [October 3, 2019, 9:47pm UTC](https://forum.xod.io/t/error-on-leonardo-deployment/2655/1 "2019-10-03T21:47:43Z")

</div>

I can’t upload to the Leonardo - New here and have tried EVERYTHING…  
Cant get ot to work - reinstalled, etc

get the following error…

avrdude: ser\_send(): write error: sorry no info avail

avrdude: butterfly\_recv(): programmer is not responding  
avrdude: error: programmer did not respond to command: leave prog mode  
avrdude: ser\_send(): write error: sorry no info avail

avrdude: butterfly\_recv(): programmer is not responding

avrdude: error: programmer did not respond to command: exit bootloader

avrdude done. Thank you.

Error: exit status 1  
Error during upload.  
Upload failed  
Command `C:\Users\Mel\AppData\Local\Programs\XOD IDE\resources\arduino-cli.exe --config-file=C:\Users\Mel\AppData\Local\Temp\arduino-cliPwcwYW\.cli-config.yml upload --fqbn arduino:avr:leonardo --port COM4 --verbose -t C:\Users\Mel\AppData\Local\Temp\xod_temp_sketchbookm1i4FW\xod_1570138377913_sketch` failed with code 1  
Make sure the board is connected, the cable is working, the board model set correctly, the upload port belongs to the board, the board drivers are installed, the upload options (if any) match your board specs.

Please help

---

<div class="post-metadata">

**Author:** ![gabbapeople](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/gabbapeople/32/1517_2.png) [@gabbapeople](https://forum.xod.io/u/gabbapeople)\
**Post date:** [October 4, 2019, 5:13am UTC](https://forum.xod.io/t/error-on-leonardo-deployment/2655/2 "2019-10-04T05:13:32Z")

</div>

Hi, [rmsstudios](https://forum.xod.io/u/rmsstudios)!

Can you please tell us:

- What Arduino board do you use?
- What manufacturer?
- Are you sure that there is a boot-loader installed on the Board and it functions normally?
- Whether your board was programmed before this error or is it the first attempt to flash the program?

Thank you.

---

<div class="post-metadata">

**Author:** ![rmsstudios](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/rmsstudios/32/1532_2.png) [@rmsstudios](https://forum.xod.io/u/rmsstudios)\
**Post date:** [October 4, 2019, 7:58am UTC](https://forum.xod.io/t/error-on-leonardo-deployment/2655/3 "2019-10-04T07:58:12Z")

</div>

Hi  
Thanx for replying  
Its an original Arduino Leonardo v3 board - all works fine with Arduino IDE…  
I can upload etc with the IDE, but with XOD I get the errors  
I have made sure to use the correct board selection as well as port.  
(currently com-4)  
Strangely tho, I have noticed on the IDE that the com port toggles between com4(read) and com3(write) - I cant figure out why…  
I therefore suspect coms errors…  
Hope this helps  
Thanx  
Mel

---

<div class="post-metadata">

**Author:** ![brusher\_ru](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher_ru/32/12_2.png) [@brusher\_ru](https://forum.xod.io/u/brusher_ru)\
**Post date:** [October 4, 2019, 10:22am UTC](https://forum.xod.io/t/error-on-leonardo-deployment/2655/4 "2019-10-04T10:22:16Z")

</div>

Do you connect Arduino to the PC through the USB hub?  
If so, try to connect it directly to the PC, it may help.

---

<div class="post-metadata">

**Author:** ![rmsstudios](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/rmsstudios/32/1532_2.png) [@rmsstudios](https://forum.xod.io/u/rmsstudios)\
**Post date:** [October 4, 2019, 11:09am UTC](https://forum.xod.io/t/error-on-leonardo-deployment/2655/5 "2019-10-04T11:09:39Z")

</div>

Yes - connected directly to PC - tried 2 seperate ports

Now getting different error…

Uploading compiled code to the board…

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53  
Copyright © 2000-2005 Brian Dean, [http://www.bdmicro.com/](http://www.bdmicro.com/)  
Copyright © 2007-2014 Joerg Wunsch

```
     System wide configuration file is "C:\Users\Mel\xod\ __packages__ \packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"

     Using Port : COM5
     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

avrdude: butterfly\_recv(): programmer is not responding

Still stumped…

Mel

---

<div class="post-metadata">

**Author:** ![brusher\_ru](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher_ru/32/12_2.png) [@brusher\_ru](https://forum.xod.io/u/brusher_ru)\
**Post date:** [October 4, 2019, 12:27pm UTC](https://forum.xod.io/t/error-on-leonardo-deployment/2655/6 "2019-10-04T12:27:22Z")

</div>

Hm… we need to investigate it.  
Can you provide more information about your OS (version) and version of the XOD IDE?  
If you have another board, can you try to upload something on it? I mean, this error reproduces only with Arduino Leonardo, or you have the same behaviour with some other boards?

Until we investigate it and fix, you can use Arduino IDE to upload the code (you can get it in Deploy -\> Show code for Arduino). Sorry for the inconveniences.

---

<div class="post-metadata">

**Author:** ![rmsstudios](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/rmsstudios/32/1532_2.png) [@rmsstudios](https://forum.xod.io/u/rmsstudios)\
**Post date:** [October 4, 2019, 1:47pm UTC](https://forum.xod.io/t/error-on-leonardo-deployment/2655/7 "2019-10-04T13:47:35Z")

</div>

Hi brusher

Windows 8 (64) with latest ver of XOD and Ard IDE  
Unfortunately no substitute board…maybe I can try on another PC - will report back

Thanx

---

<div class="post-metadata">

**Author:** ![rmsstudios](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/rmsstudios/32/1532_2.png) [@rmsstudios](https://forum.xod.io/u/rmsstudios)\
**Post date:** [October 4, 2019, 3:08pm UTC](https://forum.xod.io/t/error-on-leonardo-deployment/2655/8 "2019-10-04T15:08:34Z")

</div>

OK - so it works PERFECTLY on PC2!!!  
Exact same OS, etc (in fact the HDs were cloned!!!)  
There is something clashing on PC1…  
I have started shutting down services to see if theres any change, but so far nothing helps…  
Really strange…

Mel

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [October 5, 2019, 2:05am UTC](https://forum.xod.io/t/error-on-leonardo-deployment/2655/9 "2019-10-05T02:05:34Z")

</div>

Does PC1 have a ` __lib__ \xod` folder in your XOD Workspace? If so, deleting it will probably resolve the problem. This folder is created when you modify a built-in patch, and having it prevents the newer versions of built-in patches from being used after you update.

NOTE: just delete the `xod` subfolder under ` __lib__ `, not the entire ` __lib__ ` folder.

---

<div class="post-metadata">

**Author:** ![brusher\_ru](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher_ru/32/12_2.png) [@brusher\_ru](https://forum.xod.io/u/brusher_ru)\
**Post date:** [October 7, 2019, 3:44pm UTC](https://forum.xod.io/t/error-on-leonardo-deployment/2655/10 "2019-10-07T15:44:42Z")

</div>

Can you provide a configuration of the PC1? Also, does it have a USB 3.0?

---

<div class="post-metadata">

**Author:** ![rmsstudios](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/rmsstudios/32/1532_2.png) [@rmsstudios](https://forum.xod.io/u/rmsstudios)\
**Post date:** [October 8, 2019, 7:35am UTC](https://forum.xod.io/t/error-on-leonardo-deployment/2655/11 "2019-10-08T07:35:13Z")

</div>

Solved!!!  
It’s a USB port problem - ports on MSI motherboard dont seem to work correctly…  
I installed a addon USB board and used that port - and all works 100%

Thanx to all for trying to help

Mel

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [October 10, 2019, 7:35am UTC](https://forum.xod.io/t/error-on-leonardo-deployment/2655/12 "2019-10-10T07:35:18Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
