# Upload to Arduino causes Compilererror

**URL:** <https://forum.xod.io/t/upload-to-arduino-causes-compilererror/5356>\
**Category:** Install/Upload Problems\
**Created:** [July 30, 2021, 9:24am UTC](https://forum.xod.io/t/upload-to-arduino-causes-compilererror/5356 "2021-07-30T09:24:51Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![xodballxod](https://avatars.discourse-cdn.com/v4/letter/x/f475e1/32.png) [@xodballxod](https://forum.xod.io/u/xodballxod)\
**Post date:** [August 4, 2021, 6:58pm UTC](https://forum.xod.io/t/upload-to-arduino-causes-compilererror/5356/9 "2021-08-04T18:58:29Z")

</div>

> [@walkingbackpack](#):
>
> UNO Wifi Rev2

Well, your code works fine on my Uno… The only thing that can be happening is that you haven’t selected the right board on uploading…

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/a/a13eeaf7453b43226bcc952768d464f3745f39de.png)

Now, when I switch back to my Uno, it’s actually not on the right COM until I select the COM that has my board.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/a/a0afc6e18c81a269d15ff9449d9a2b9bf5158e35.png)

Now, both are selected properly.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/0/04833fc4e094fd37526eed54a8c83c8ba570ee02.png)

Then, Upload.  
Works great.

If you’re having issues still. Either, a) look around on the internet for issues with the board type you’re using, b) get a different board type and see what happens, c) contact the XOD developers to report a possible bug (only after you’ve done a) and b) ). If you’re using Wi-Fi… Then, if you’re not married to arduino then you may consider ESP32.

You gotta have the Packages up-to-date, too… Check out this post, they mention selecting a particular board.

> [@Problem with upload to Arduino](https://forum.xod.io/t/problem-with-upload-to-arduino/1385/11):
>
> Upgrade Packages and Toolchains [packages]

---

_[View the full topic](https://forum.xod.io/t/upload-to-arduino-causes-compilererror/5356)._
