BlueNRG-X Flasher Utility (4.1.0) is not recognizing SWD connections when ST-link/V2 is connected. I'm running the flasher through a command line interface to get the error message (BlueNRG-X_Flasher_Launcher.exe).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-05 7:44 AM
The error message that appears is:
"Traceback (most recent call last):
File "Script_launcher.py", line 542, in <module>
File "globals.py", line 555, in get_stlink_list
File "build\bdist.win32\egg\usb\core.py", line 1246, in device_iter
File "build\bdist.win32\egg\usb\backend\libusb1.py", line 717, in enumerate_devices
File "build\bdist.win32\egg\usb\backend\libusb1.py", line 631, in __init__
File "build\bdist.win32\egg\usb\backend\libusb1.py", line 595, in _check
usb.core.USBError: [Errno 19] No such device (it may have been disconnected)
[47128] Failed to execute script Script_launcher"
- Labels:
-
Low Power RF Solutions
-
ST-Link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-16 11:04 PM
Please check if ST-Link/V2 is connected properly.
Then try again after erasing the flash with UART.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-17 10:21 AM
Thanks for your answer. I already checked the ST-Link/V2 connection and is working. I tried using the STM32 ST-LINK Utility (STSW-LINK004) and the SWD connection is recognized. But the BlueNRG Flasher Utility keeps responding that error message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-18 12:06 AM
Were you trying to connect a STM32 or BlueNRG-1?
Please note that STM32 ST-LINK Utility (STSW-LINK004) does not work with BlueNRG-1/BlueNRG-2, instead, BlueNRG-1 ST-LINK utility (STSW-BNRG1STLINK) shall be used.
Please check if BlueNRG-X Flasher Utility GUI works for you or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-18 12:13 PM
I'm using Bluenrg-LP. BlueNRG-X Flasher Utility GUI does not work because in the SWD tab does not appear any device. That's why I tried the BlueNRG Flasher Launcher to verify via command line the error message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-18 11:41 PM
Were you using STEVAL-IDB011V1 ?
By default CMSIS-DAP can be used without needing an external ST-Link/V2.
Anyway, both shall work:
Looking back to your screenshot, the traceback shows that pyusb/libusb failed when iterating on all the enumerated (ST-Link) devices. It was somehow disconnected?
I am not able the replicate the issue with my laptop and ST-Link/V2.
Several things worth to try:
- Try to unplug and re-plug the device
- Try other USB ports
- Try with a different PC
