# Can't connect debug adapter to Swan

**URL:** <https://discuss.blues.com/t/cant-connect-debug-adapter-to-swan/1829>\
**Category:** Firmware\
**Created:** [December 4, 2023, 5:40pm UTC](https://discuss.blues.com/t/cant-connect-debug-adapter-to-swan/1829 "2023-12-04T17:40:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlkeith](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/rlkeith/32/886_2.png) [@rlkeith](https://discuss.blues.com/u/rlkeith)\
**Post date:** [December 4, 2023, 5:40pm UTC](https://discuss.blues.com/t/cant-connect-debug-adapter-to-swan/1829/1 "2023-12-04T17:40:01Z")

</div>

Hi All,

I have been using VScode + PlatformIO with the STLINK V3-MINIE debug adapter do develop and configure Swan boards. My adapter has a USB C connector. I am using a Windows 10 PC with a USB 3 port.

Today I started up VS Code, and waited for various updates. When I tried to load the firmware, I got the message:

Error: libusb\_open() failed with LIBUSB\_ERROR\_NOT\_FOUND  
Error: open failed  
in procedure ‘program’  
\*\* OpenOCD init failed \*\*  
shutdown command invoked

I have tried different USB cables. In device manager, the debug adapter appears as two devices; A USB serial device and a an ST-link debug adapter.

I have also tried to upload using DFU via the Swan USB connector. I have never been able to make that work.

Is there a setting in VScode or PlatformIO I need to change? Could it be that my debug adapter is faulty?

Thanks in advance,

Rob

---

<div class="post-metadata">

**Author:** ![rlkeith](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/rlkeith/32/886_2.png) [@rlkeith](https://discuss.blues.com/u/rlkeith)\
**Post date:** [December 4, 2023, 6:04pm UTC](https://discuss.blues.com/t/cant-connect-debug-adapter-to-swan/1829/2 "2023-12-04T18:04:19Z")

</div>

Hi again,

It is a Windows problem, or a cable problem. I just moved everything to my Mac and it just worked.

It had been working previously with my PC. If I find the problem I’ll add the fix here.

Rob
