# Error message on first upload

**URL:** <https://forum.xod.io/t/error-message-on-first-upload/2351>\
**Category:** Uncategorized\
**Created:** [June 20, 2019, 5:53pm UTC](https://forum.xod.io/t/error-message-on-first-upload/2351 "2019-06-20T17:53:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikerbrowne](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@mikerbrowne](https://forum.xod.io/u/mikerbrowne)\
**Post date:** [June 20, 2019, 5:53pm UTC](https://forum.xod.io/t/error-message-on-first-upload/2351/1 "2019-06-20T17:53:38Z")

</div>

Hi, I am new to XOD (which is fantastic, by the way!) and having created a routine and debugged in with the simulator I proceeded to upload it to a Arduino Mega, but during the patch installation process (first time upload) the following error message appeared: “Error  
`C:\Users\miker_000\AppData\Local\Programs\XOD IDE\resources\arduino-cli.exe --config-file=C:\Users\MIKER_~1\AppData\Local\Temp\arduino-clii0aUFi\.cli-config.yml core install arduino:samd` failed with code 1  
The error has no formatter, which is a bug. Report the issue to XOD developers.”  
I have tried the process twice, with the same result and I can proceed no further until it is resolved but it appears that it is a bug from XOD’s end.

I chose the Mega as I need 13 PWM outputs by I will try it with a UNO I have to hand as my testbed uses just 3 output as a proof of concept. in the meantime, please HELP!

---

<div class="post-metadata">

**Author:** ![mikerbrowne](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@mikerbrowne](https://forum.xod.io/u/mikerbrowne)\
**Post date:** [June 20, 2019, 6:26pm UTC](https://forum.xod.io/t/error-message-on-first-upload/2351/2 "2019-06-20T18:26:25Z")

</div>

Sorry folks!  
Forget the above post. I was just checking my upload settings again and realised I had chosen the MKR1000 version instead of the “Arduino/Genuino Mega 2560”

Once I set the correct version it uploaded first time. DOH!
