TinyCircuits

linux code upload and modemmanager

littlejohn

  • **
  • 6
  • hello there
    • View Profile
linux code upload and modemmanager
« on: September 28, 2018, 05:18:03 PM »
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/

Re: linux code upload and modemmanager
« Reply #1 on: October 27, 2018, 06:19:23 AM »
Did you find a solution for this? I can't seem to upload the code either.

littlejohn

  • **
  • 6
  • hello there
    • View Profile
Re: linux code upload and modemmanager
« Reply #2 on: October 27, 2018, 09:25:26 PM »
Hi, yeah the solution for that specific problem is in my post above...  ;D

What kind of problem are you having exactly?

Re: linux code upload and modemmanager
« Reply #3 on: October 08, 2019, 09:56:10 PM »
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.