I've set up a pi to program an Arduino that it's also powering over the USB port of the arduino. But I'm having a lot of problems actually getting the pi to reliably upload the program to the arduino, half the time it will error out saying the programmer is out of sync.
I've gone through the steps to disable the ttyACM0 console both in /etc/inittab and in /boot/cmdline.txt, but it will still always fail when it is connected to ttyACM0, I get about a 50% failure rate once I unplug and replug the arduino and it attaches to ttyACM1, but I get a very good (almost 100%) success rate when connect to ttyACM2.
Am I missing something such that ttyACM0 is in use by another device despite me disabling the console port that creating a conflict when I try to upload to the arduino? Or is there some way I can just tell linux to always connect the arudino to ttyACM2 since that appear to be my most reliable spot?