Now I've been pulling my hair for two days over this one. I've tried everything. I've turned every stone, looked at every search result, and every Arduino Forums thread.
The problem is that Arduino IDE does not recognize the Arduino when connected to the PC, thus I can't upload compiled sketches. As usual, the serial port dropdown menu is greyed-out.
Things I have tried so far:
- Tried a different USB cable. Same results.
- Tried it on a Mac. It works flawlessly with different sketches.
- Looked at dmesg logs for Arduino when connecting. It connects to the PC successfully.
- Created a custom udev rule for it to be symlinked from /dev/bus/usb/001/00X to /dev/ttyACMX.
- Modified the custom udev rule for it to be symlinked from /dev/bus/usb/001/00X to /dev/ttyUSBX (since for some reason IDE was looking for ttyUSB0 first).
- Tried Arduino IDE from snap, apt, and from arduino.cc. All of them work the same.
- Tried different versions of AVR board packages from the Boards Manager, none of them work at all.
- Tried a NodeMCU (ESP8266), it works flawlessly.
- Tried Arduino Due, it works flawlessly.
- Added myself to dialout, uucp, and tty groups. Nothing changed.
- Changed permissions to a+rwx for all possible Arduino device file nodes.
- Changed group ownership to dialout, uucp, and tty for all possible Arduino device file nodes.
- Tried running Arduino IDEs as root. Nothing changed.
- Installed different firmware and libraries for linux (ex. libserialport0)
- Patched the apt version of Aruino IDE with patchelf.
- Updated.
- Rebooted.
"But hey man, why don't you just use the Mac to compile and upload the sketch, or any other MCU for that matter?" - Because I need to get output from my main PC and delegate it via serial to the Arduino. And Arduino Due is too clunky. And NodeMCU has disputable support for FastLED.
If any of you crazy mfs has an idea on how to solve this, I owe you a beer.
cu -l /dev/ttyUSB0 -s 115200
on the commandline) and try to sends something. Is the RX LED lighting up a bit (will only be very shortly, but visible)?