A
A
Anonymous54545872021-02-27 11:12:40
linux
Anonymous5454587, 2021-02-27 11:12:40

Why can't I upload a sketch to the Arduino Leonardo?

This is my mistake

Caused by: jssc.SerialPortException: Port name - /dev/ttyACM0; Method name - openPort(); Exception type - Permission denied.
  at jssc.SerialPort.openPort(SerialPort.java:170)
  at processing.app.Serial.touchForCDCReset(Serial.java:81)
  ... 7 more

System: Ubuntu 20.04 LTS

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2021-02-27
@Anonymous5454587

the user does not have access to the /dev/ttyACM0 device,
look at the rights to this device
ls -la /dev/ttyACM0
and add the user to the appropriate group.
I don’t have Ubuntu at hand, but it could be something like usb

B
Borys Latysh, 2021-03-01
@nava2002

When the development environment starts uploading the binary file to the controller ("Download" mode),
try pressing the "Reset" button on the Arduino Leonardo board.
If I'm not mistaken, this will launch the "Loader" which will organize access to the controller's memory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question