# Error on uploading with \[Watch\] or debugging

**URL:** <https://forum.xod.io/t/error-on-uploading-with-watch-or-debugging/1892>\
**Category:** Uncategorized\
**Created:** [February 19, 2019, 10:26am UTC](https://forum.xod.io/t/error-on-uploading-with-watch-or-debugging/1892 "2019-02-19T10:26:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![lensfort](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lensfort](https://forum.xod.io/u/lensfort)\
**Post date:** [February 19, 2019, 10:26am UTC](https://forum.xod.io/t/error-on-uploading-with-watch-or-debugging/1892/1 "2019-02-19T10:26:48Z")

</div>

Hi,

My code uploads and works (mostly), except on my main PC, I cant get the debugging (or simulation) working.

Any insight would be helpful.

Code works, debugging works, everything works when I use my other PC.  
Driver or dependency related I assume.  
I have already uninstalled XOD and Arduino IDE, removed all traces that I can find in Program Files and in User folder.

I get this error:

````auto
Upload failed
Command `C:\Program Files\XOD IDE\resources\arduino-cli.exe --config-file=C:\Users\Lensfort\AppData\Local\Temp\arduino-clixrpiD6\.cli-config.yml upload --fqbn arduino:avr:uno --port COM4 --verbose -t C:\Users\Lensfort\AppData\Local\Temp\xod_temp_sketchbookFRztqK\xod_1550571769251_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.```
````

---

<div class="post-metadata">

**Author:** ![lensfort](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lensfort](https://forum.xod.io/u/lensfort)\
**Post date:** [February 21, 2019, 8:25am UTC](https://forum.xod.io/t/error-on-uploading-with-watch-or-debugging/1892/2 "2019-02-21T08:25:28Z")

</div>

Seems a bit further up the error is :

```auto
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x6f

```

If thats helpful.

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [February 21, 2019, 1:10pm UTC](https://forum.xod.io/t/error-on-uploading-with-watch-or-debugging/1892/3 "2019-02-21T13:10:37Z")

</div>

Hi, in order to help you, more information is needed.  
As operating system and board you are using.

---

<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:** [February 21, 2019, 7:01pm UTC](https://forum.xod.io/t/error-on-uploading-with-watch-or-debugging/1892/4 "2019-02-21T19:01:20Z")

</div>

Upload software is saying it can’t find your board. Is it plugged in & recognized by your OS? Try unplugging & plugging it back in.

Did you select the correct board & port?

Do you have hardware connected to the tx/rx pins on the board (I think pins 0 & 1 on UNO; this will block communication…don’t ask how I know…WAY too much time was wasted…)?

---

<div class="post-metadata">

**Author:** ![lensfort](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lensfort](https://forum.xod.io/u/lensfort)\
**Post date:** [February 21, 2019, 10:12pm UTC](https://forum.xod.io/t/error-on-uploading-with-watch-or-debugging/1892/5 "2019-02-21T22:12:56Z")

</div>

Chinese Arduino Uno R3 with CH340 serial.

Selected “Arduino/Geniuno Uno”  
Machine is Windows 10

The use of this board and that above selection works fine on other PCs.  
Yes, serial is detected (COM4), board will upload and accept code from Ardiuno IDE with no problems.

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [February 21, 2019, 10:44pm UTC](https://forum.xod.io/t/error-on-uploading-with-watch-or-debugging/1892/6 "2019-02-21T22:44:32Z")

</div>

test with this driver [link](https://www.geekfactory.mx/tutoriales/tutoriales-arduino/driver-ch340-para-arduino-chinos-o-genericos/#)

---

<div class="post-metadata">

**Author:** ![nkrkv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nkrkv/32/8_2.png) [@nkrkv](https://forum.xod.io/u/nkrkv)\
**Post date:** [February 22, 2019, 12:07pm UTC](https://forum.xod.io/t/error-on-uploading-with-watch-or-debugging/1892/7 "2019-02-22T12:07:22Z")

</div>

Another thing to try is: use another USB port of the PC or even an external USB-hub. Recently I saw a situation when such port switching helped.

---

<div class="post-metadata">

**Author:** ![lensfort](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lensfort](https://forum.xod.io/u/lensfort)\
**Post date:** [February 22, 2019, 11:46pm UTC](https://forum.xod.io/t/error-on-uploading-with-watch-or-debugging/1892/8 "2019-02-22T23:46:14Z")

</div>

I did this before reading this.

Apparently: 1 - XOD doesnt like communicating via USB3.0, and 2- not through a USB2.0 hub connected to USB3.0.

I used the 1 of the 2 only USB2.0 sockets and I got all of my boards (5x) to talk, except a nano with a ATMega168pau.

So, solved. Use USB2.0 direct.

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [February 23, 2019, 1:24am UTC](https://forum.xod.io/t/error-on-uploading-with-watch-or-debugging/1892/9 "2019-02-23T01:24:08Z")

</div>

Sometimes you can disable some features in the usb device manager. for example trying to deactivate root hub (usb 3.0)  
Always when you do not need to use USB 3.0

In my laptop I have USB3, and I did not have those problems, it works the same as in USB2

---

<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:** [February 25, 2019, 9:13am UTC](https://forum.xod.io/t/error-on-uploading-with-watch-or-debugging/1892/10 "2019-02-25T09:13:31Z")

</div>

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