Skip to content

Error Uploading #11978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bparanj opened this issue Sep 3, 2024 · 1 comment
Closed

Error Uploading #11978

bparanj opened this issue Sep 3, 2024 · 1 comment
Labels
question A request for information Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug

Comments

@bparanj
Copy link

bparanj commented Sep 3, 2024

When I upload the code to Arduino nano I get a permission error on Ubuntu 24.

Code:

void setup() {
  // put your setup code here, to run once:
  pinMode(2, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(2, HIGH);
}

Error:

Sketch uses 724 bytes (2%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied
Failed uploading: uploading error: exit status 1

If I open the IDE with sudo command, the IDE has just a blank screen. It is not opening the program file.
How to resolve this error?

@matthijskooijman
Copy link
Collaborator

@per1234 per1234 added Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug question A request for information labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A request for information Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug
Projects
None yet
Development

No branches or pull requests

3 participants