0

I'm trying to reset an Arduino Pro Micro with a new code and it is not allowing me to. I'm using an empty sketch to upload to the pro micro but I get different error messages every time. I think the reason why it doesn't allow me to upload code is because it is programmed to start on boot. As soon as it's plugged in to a USB port the code runs, and causes this issue.

Some of the errors I get is

Arduino: 1.8.2 (Linux), Board: "Arduino/Genuino Micro"

Sketch uses 3602 bytes (12%) of program storage space. Maximum is 28672 bytes.
Global variables use 147 bytes (5%) of dynamic memory, leaving 2413 bytes for local variables. Maximum is 2560 bytes.
avrdude: ser_open(): can't open device "/dev/ttyACM0": Device or resource busy
Problem uploading to board.`

Does anyone know how I can fix this?

  • Did you try pressing the reset button twice? – Ignacio Vazquez-Abrams Jun 8 '17 at 19:53
  • Sounds like ModemManager is locking the port. – Majenko Jun 8 '17 at 19:54
  • @IgnacioVazquez-Abrams Yeah I have tried pressing the reset button twice and then uploading the empty code quickly as soon as the port is identified but no luck – Katz Jun 8 '17 at 19:57
  • 1
    @dandavis You think? ;) Maybe I should have mentioned modemmanager instead. – Majenko Jun 9 '17 at 9:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.