# Ubuntu mega upload issue

**URL:** <https://forum.xod.io/t/ubuntu-mega-upload-issue/4890>\
**Category:** Uncategorized\
**Created:** [February 12, 2021, 10:15pm UTC](https://forum.xod.io/t/ubuntu-mega-upload-issue/4890 "2021-02-12T22:15:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![g-p](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/g-p/32/1404_2.png) [@g-p](https://forum.xod.io/u/g-p)\
**Post date:** [February 12, 2021, 10:15pm UTC](https://forum.xod.io/t/ubuntu-mega-upload-issue/4890/1 "2021-02-12T22:15:44Z")

</div>

Had a similar issue last year and was able to resolve it. This time not so much. I searched this community and did some of the older reply suggestions. I really love the XOD IDE.  
I have the Mega attached to a robotic arm which works as it was programmed to do about a year ago. I had a Niece that wanted to see how it worked and do something different. I can not upload to the Mega, I can upload to the Uno and the Nano but not the Mega2560.  
mega defaults to /Dev/ttys9.  
The Uno defaults to /Dev/ttyACM0(Arduino(www.arduino.cc))

This is the message

```
     User configuration file does not exist or is not a regular file, skipping

     Using Port : /dev/ttyS9
     Using Programmer : wiring
     Overriding Baud Rate : 115200

```

avrdude: ser\_open(): can’t set attributes for device “/dev/ttyS9”: Inappropriate ioctl for device  
ioctl(“TIOCMGET”): Bad file descriptor

ioctl(“TIOCMGET”): Bad file descriptor

avrdude: ser\_drain(): select(): Bad file descriptor  
avrdude: ser\_send(): write error: Bad file descriptor  
avrdude: stk500\_send(): failed to send command to serial port  
avrdude: ser\_recv(): select(): Bad file descriptor  
avrdude: stk500v2\_ReceiveMessage(): timeout  
avrdude: ser\_send(): write error: Bad file descriptor  
avrdude: stk500\_send(): failed to send command to serial port  
avrdude: ser\_recv(): select(): Bad file descriptor  
avrdude: stk500v2\_ReceiveMessage(): timeout  
avrdude: ser\_send(): write error: Bad file descriptor  
avrdude: stk500\_send(): failed to send command to serial port  
avrdude: ser\_recv(): select(): Bad file descriptor  
avrdude: stk500v2\_ReceiveMessage(): timeout  
avrdude: ser\_send(): write error: Bad file descriptor  
avrdude: stk500\_send(): failed to send command to serial port  
avrdude: ser\_recv(): select(): Bad file descriptor  
avrdude: stk500v2\_ReceiveMessage(): timeout  
avrdude: ser\_send(): write error: Bad file descriptor  
avrdude: stk500\_send(): failed to send command to serial port  
avrdude: ser\_recv(): select(): Bad file descriptor  
avrdude: stk500v2\_ReceiveMessage(): timeout  
avrdude: ser\_send(): write error: Bad file descriptor  
avrdude: stk500\_send(): failed to send command to serial port  
avrdude: ser\_recv(): select(): Bad file descriptor  
avrdude: stk500v2\_ReceiveMessage(): timeout  
avrdude: stk500v2\_getsync(): timeout communicating with programmer

avrdude done. Thank you.

Error: exit status 1  
Error during upload.  
Upload failed  
Command Process exited 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:** ![g-p](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/g-p/32/1404_2.png) [@g-p](https://forum.xod.io/u/g-p)\
**Post date:** [February 13, 2021, 9:10pm UTC](https://forum.xod.io/t/ubuntu-mega-upload-issue/4890/2 "2021-02-13T21:10:15Z")

</div>

I think I got it figured out, I have 3 Mega 2560 controllers only 1 will communicate.I even tried on a windows computer and the same result. These are fairly old controllers I will have to trouble shoot the boards or get new ones. Thought I would pass it on.  
thanks

---

<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:** [March 15, 2021, 9:10pm UTC](https://forum.xod.io/t/ubuntu-mega-upload-issue/4890/3 "2021-03-15T21:10:22Z")

</div>

Closed on March 15, 2021, 9:10pm UTC

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