-
Notifications
You must be signed in to change notification settings - Fork 157
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
ampy.pyboard.PyboardError: failed to access /dev/ttyUSB0 #9
Comments
If this is Linux double check your user has access to the serial port, i.e. try running the screen command to see that the /dev/ttyUSB0 port exists and you can open the REPL to interact with the board:
If that doesn't work then something might be wrong with permissions for the serial port. Try running with sudo (both screen and the ampy command) to override any permission issue and access as root. |
hi |
Same issue here !
|
I have this behavior on Windows when Putty also have an active connection. When I close Putty I can use ampy without any problems. |
You cannot have 2 serial connections at the same time. Either Putty(screen, etc) or ampy. Not both. |
The exact same issue here. I even terminated all other applications like putty and screen but still showing the same error. |
I had same issue with my ESP8266 Huzzah board on MacOS. Close terminal with Command + Q and disconnected and connected board. Afterwards I tried to use ampy command and it worked. Hope that helps. |
Maybe it's about file permissions, open the terminal : |
this issue is because of USB cable we use.... Charging cable that debbug Mobile phone will work fine but not normal cable that do just charging. |
Have the same issue rn with my esp32. I highly suspect this is because i uploaded a program with a while loop to the board and it just runs endlessly so might have to find a way to kill that program first. If somebody knows how to do this in ubuntu i'd be thankful. |
Thank you very much, that saved me. I had my board (ESP32) connected by Thonny IDE, when I closed it and tested it in VS Code, I was able to use ampy. NOTE: Using Windows 10. |
I can't use it on my nodemcu?what should I do?
The text was updated successfully, but these errors were encountered: