-
Notifications
You must be signed in to change notification settings - Fork 982
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
Black Magic Probe with a two-digit COM port on Windows won't work #1377
Comments
Hi @wirehead Arduino_Core_STM32/platform.txt Line 183 in 0a3fa54
This is the same for all host supported OS. Why specifically check if COM port has 2 digits on Windows and change command lien? |
Hi @fpistm,
I can do a PR if this way is ok for you ? |
Hi @reppad
Up to you. If you consider this safe. I will not validate this as I don't have a BMP. |
This is one of the mods I've been using for a while on my setup. |
Just to clarify, this is not a limitation of BMP in any way. BMP has nothing to do with any of this. You are using GDB to connect to a remote target com port that is provided by BMP. The correct way to provide remote com port targets to GDB on Windows was pretty much always with the |
Thanks for the feedback @esden. |
If there's a Black Magic Probe and you've run enough different serial port devices into your system such that it's a two-digit COM port, the Arduino integration doesn't properly prefix the path and thus the Arduino app is unable to connect to the Black Magic Probe.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Arduino should at least connect to the Black Magic Probe and get farther along on the flashing process.
Desktop (please complete the following information):
Board (please complete the following information):
Additional context
It's a very Windows-specific thing, brought because of a legacy that's older than STMicroelectronics, LOL.
As shown on https://github.com/blacksphere/blackmagic/wiki/Getting-Started notice the quote:
On Windows, use the the COM port instead of
/dev/ttyACM0
. For ports >= COM10, add the prefix\\.\
, for example:Temporary workaround
Go into the Device manager, select "Show hidden devices" and go to the "Ports" section, right-click on each one and select "Uninstall device" to delete all of your serial ports or at least enough so that COM8 and COM9 are free, then connect your BMP again.
The text was updated successfully, but these errors were encountered: