Hello community, I’m struggling with PlatformIO 6.1.14/3.4.4 non-reliably uploading code onto the Arduino Mega Board; it typically runs the very first time after resetting/booting the computer. It runs sometimes after dis- and reconnecting the USB cable. The board shows up at /dev/cu.usbmodem11301
- I tried explicitly mentioning that port in the INI file, but it does not make a difference
- I can not find any concurrent drivers e.g. the SiLabs problem
- Resetting the board does not help
It seems avrdude is the culprit (or victim) in the toolchain as the terminal states
Writing | avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
and it seems to happen during write since the line of # is not completed, rather the error message is interrupting the progress report:
Writing | #####################avrdude: stk500v2_ReceiveMessage(): timeout
What might be the reason, and what can I do to fix the issue?