Open eloquentarduino opened 3 years ago
@eloquentarduino this might very well be an issue with a serial port not being released properly. I run Mac OS myself and have learned over the years that Darwin gets very possessive of UARTs to the point that sometimes I had BSOD when unplugging a board.
Make sure you dispose of your Serial connections properly. Sometimes resetting a board might do the trick for you, forcing PySerial to throw an exception if it's still hung on the port.
I doubt this is a bug on arduino-cli
, but keep us posted with your findings.
u.
Bug Report
When uploading to the Ladybug L432KC board with the arduino-cli, I sometimes get an error.
Current behavior
This is the output from the cli:
Expected behavior
I expect the upload to succeed.
Environment
Additional context
This happens most often after I read the serial output from the board via Python's pySerial library.