Open aliphys opened 1 year ago
Related issues:
Related forum post:
This Help Centre article is very helpful. However, it does not show up high in google when searching for the error message.
We may allow a platform to provide a way to augment the error messages of the uploader, similarly to what's described in https://github.com/arduino/arduino-cli/issues/1657
Describe the problem
It is required to configure the udev code in Linux to provide access to the Serial port. Otherwise, it is not possible to upload sketches to the Arduino board.
Given that configuring the udev rules is essential, then most (all?) linux users will face this issue. For new users, this could be especially difficult to figure out.
To reproduce
Compile a sketch (using this as an example)
/dev/ttyACM0
port. It is not possible to upload, and we get theexit status 1 error
It is now possible to upload the sketch
Expected behavior
The user is informed of this issue when error occur. Something like
If using a Linux OS, make sure that the udev rules are configured correctly to enable access to the Serial port. See https://support.arduino.cc/hc/en-us/articles/9005041052444-Fix-udev-rules-on-Linux for more information
Arduino CLI version
0.34
Operating system
Linux
Operating system version
Ubuntu 22.04.03 LTS
Additional context
No response
Issue checklist