Skip to content
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

Serial Monitor: Auto disconnect when com port disappears #9

Open
EmbeddedMan opened this issue Feb 22, 2017 · 0 comments
Open

Serial Monitor: Auto disconnect when com port disappears #9

EmbeddedMan opened this issue Feb 22, 2017 · 0 comments

Comments

@EmbeddedMan
Copy link
Member

This is, I believe, primarily an issue under Windows 7 and windows 8.

If you are using a built-in USB serial board like the Leny or Fubarino, and you are communicating with it using the Serial Monitor, and then you put the board into bootloader mode without first manually closing the Serial Monitor, the Serial Monitor has a hold of the COM port, which then went away (and came back) behind the back of the Serial Monitor when you put the board in bootloader mode. This then prevents the build/download button from working, as pic32prog won't be able to open up the com port since it no longer exists.

For now, the solution is to either

A) Always remember to close the serial monitor before resetting the board in any way, including going into bootloader mode

or

B) If you get yourself into the above situation, close the serial monitor, then put the board into bootloader mode again (hold down PRG while pressing and releasing RESET, making sure to hold RESET for probably 5 seconds to allow Windows to get things straightened out). then try doing the build/program and it should work.

Ideally (and this is the feature request) the Serial Monitor would watch for devices dropping off the USB (i.e. for COM ports to go away), and then immediately close the open com port if it ever notices that the COM port it has opened up gets closed. This may not be possible under all OSes, but it sure would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant