ModemManager interferes with flashing Arduino boards
Last time I was flashing an Arduino board through either Arduino Studio (1.8.9) or avrdude directly from Linux before May, it worked flawless all the time. Yesterday I realized, I couldn't flash anymore without issues. During the writing method, the output is already interrupted:
Writing | ###########avrdude: error: programmer did not respond to command: set addr
###########avrdude: error: programmer did not respond to command: set addr
####################avrdude: error: programmer did not respond to command: set addr
######## | 100% 0.81s
Though the writing process seems to finish, the verification of avrdude fails. There can happen also other error messages, even bricking the Arduino board.
After some research on the internet, I stumbled over an entry, where ModemManager was mentioned to cause problems. After I killed the ModemManager process, I could flash again without issues.
Looks like there was an update on my Distribution (Ubuntu 18.04 LTS) in May:
var/log/dpkg.log.3.gz:2019-05-18 10:02:13 upgrade modemmanager:amd64 1.6.8-2ubuntu1 1.10.0-1~ubuntu18.04.2
With the former version 1.6.8-2ubuntu1 it seems to have worked flawless for months, as I was developing an Arduino software, and even changing its USB Vendor and Product ID (so it's not 2341:8036 anymore). I didn't use it until yesterday, so I just realized there is an issue now.
I'm not sure if this is related to #127 (closed), but at least on Ubuntu with ModemManager 1.10.0-1~ubuntu18.04.2 there is a high risk that avrdude can't flash the board properly anymore and even brick the board.