linux code upload and modemmanager

Started by littlejohn, September 28, 2018, 05:18:03 PM

Previous topic - Next topic

littlejohn

**
Jr. Member
Posts: 7
hello there
Location: north
Logged
Another issue I had, just FYI:

I had alot of trouble uploading code to tinyscreen+ on Linux. Half the time it would fail or tell me the port was busy. This is due to ModemManager scoping out any serial ports to see if they are GSM modems. You can fix this by putting a udev rule something like this in /etc/udev/rules.d/77-arduino.rules

# stop modemmanager from checking every serial port for a modem.. it locks up the port
# for a few seconds and interferes with uploading.
#
# arduino
ATTRS{idVendor}=="2a03", ENV{ID_MM_DEVICE_IGNORE}="1"
# tinyscreen / atmel
ATTRS{idVendor}=="03eb", ENV{ID_MM_DEVICE_IGNORE}="1"

...as described here:
http://starter-kit.nettigo.eu/2015/serial-port-busy-for-avrdude-on-ubuntu-with-arduino-leonardo-eth/

Crinklaw

*
Newbie
Posts: 1
Logged
#1
Quote from: littlejohn on October 27, 2018, 09:25:26 PM
Hi, yeah the best solution are these online casinos for that specific problem is in my post above...  ;D

What kind of problem are you having exactly?

Did you find a solution for this? I can't seem to upload the code either.

littlejohn

**
Jr. Member
Posts: 7
hello there
Location: north
Logged
Hi, yeah the solution for that specific problem is in my post above...  ;D

What kind of problem are you having exactly?

Rick

*
Newbie
Posts: 2
Logged
I guess I missed this and double posted. Specifically, one of the errors I was getting was "SAM-BA operation failed". See also: http://forum.tinycircuits.com/index.php?topic=1754.0 Sorry about the double post.

SMF spam blocked by CleanTalk