-
Notifications
You must be signed in to change notification settings - Fork 9
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
stbridge setup.py #10
Comments
Are you setting The error you're seeing indicates a USB communication error https://github.com/dragonlock2/STLINK-V3-BRIDGE_libusb/blob/1e1a1ae15b70f06cd16b36170b1296bee6520b58/src/bridge/bridge.h. It's possible the |
I see. I tried to hardcode the CMAKE_TOOLCHAIN_FILE path, and now the error is BRG_ERROR:1 which translates to 'USB Connection Error'. Could it be due to the os that I am using is Windows?
|
No it's working on my Windows computer. Did you use Zadig to change the driver for the device to WinUSB? |
Yes, I have tried to reinstall the ST-Link Bridge interface to latest WinUSB (v6.1.7600.16385). Attempting to open ST-Link... |
I've tried a V3SET on my end and also updated to the latest firmware and they all seem to work. Can you try installing WSL or rebooting into Linux and trying that? |
Noticed two issues:
1.) Setup.py not working due to missing LIBUSB path.
2.) While trying to run alltest.py, it was unable to go pass line 5. Found this error due to BRG_USB_COMM_ERR. Totally clueless on what went wrong as I checked the COMPORT is okay.
cmake_args = [
f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={extdir}",
f"-DPYTHON_EXECUTABLE={sys.executable}",
f"-DCMAKE_BUILD_TYPE={cfg}",
f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{cfg.upper()}={extdir}",
f"-DLIBUSB_INCLUDE_DIRS=C:\DEV\vcpkg\installed\x64-windows\include\libusb-1.0",
f"-DLIBUSB_LIBRARIES=C:\DEV\vcpkg\installed\x64-windows\lib",
]
dev = st.USBInterface.list_devices()[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: BRG_ERROR: 3
The text was updated successfully, but these errors were encountered: