# Swan and CircuitPython

**URL:** <https://discuss.blues.com/t/swan-and-circuitpython/528>\
**Category:** Hardware\
**Created:** [December 5, 2021, 2:25pm UTC](https://discuss.blues.com/t/swan-and-circuitpython/528 "2021-12-05T14:25:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![noskman](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@noskman](https://discuss.blues.com/u/noskman)\
**Post date:** [December 5, 2021, 2:25pm UTC](https://discuss.blues.com/t/swan-and-circuitpython/528/1 "2021-12-05T14:25:58Z")

</div>

Following the directions here for CircuitPython: [Swan Quickstart](https://dev.blues.io/start/swan/swan-quickstart/#using-circuitpython), my Swan board populates as a SWANBOOT drive on my Windows 10 PC. When I copy the **circuitpython-swan\_r5.uf2** file to the SWANBOOT drive the drive does not populate as a CIRCUITPY drive. Instead, the SWANBOOT drive just disappears.

If I unplug and re-plug the Swan board, the drive does not populate. If I double tap the reset button it populates as a SWANBOOT drive.

I have put the board back into boot mode and reloaded the _tinyuf2-swan\_r5.bin_ file using the command: _dfu-util -s 0x8000000:leave -a 0 -D tinyuf2-swan\_r5.bin_. Again, the Swan board populates as a SWANBOOT drive and if I copy the **circuitpython-swan\_r5.uf2** file again, the board does not populate as a CIRCUITPY drive. Rinse and repeat…

Any ideas where I am going wrong?

---

<div class="post-metadata">

**Author:** ![bsatrom](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/bsatrom/32/3_2.png) [@bsatrom](https://discuss.blues.com/u/bsatrom)\
**Post date:** [December 5, 2021, 4:50pm UTC](https://discuss.blues.com/t/swan-and-circuitpython/528/2 "2021-12-05T16:50:50Z")

</div>

Hey @noskman thanks for the question, and welcome to the community, we’re glad you’re here!

Sorry you’re having some issues getting the Swan up and going. I see that double-clicking RESET puts the swan back in bootloader mode, which is expected. Have you tried just clicking RESET once instead of removing power from the swan?

Also, what OS are you using?

---

<div class="post-metadata">

**Author:** ![noskman](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@noskman](https://discuss.blues.com/u/noskman)\
**Post date:** [December 5, 2021, 5:01pm UTC](https://discuss.blues.com/t/swan-and-circuitpython/528/3 "2021-12-05T17:01:34Z")

</div>

Hey @bsatrom - Thanks for the speedy reply. Blues Wireless is terrific, you guys really hit the mark!

\*Yep, I tried hitting RESET just once, forget to mention that, with no affect doing it.  
\*I am on Windows 10 Pro (64 bit).  
\*One more note, when I unplug and plug in the USB cable, I also see a single amber LED flash

---

<div class="post-metadata">

**Author:** ![bsatrom](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/bsatrom/32/3_2.png) [@bsatrom](https://discuss.blues.com/u/bsatrom)\
**Post date:** [December 5, 2021, 6:12pm UTC](https://discuss.blues.com/t/swan-and-circuitpython/528/4 "2021-12-05T18:12:36Z")

</div>

You’re welcome @noskman, happy to help! I don’t have Windows for my setup, but I’ll ask someone on the team who does to take a look tomorrow and we’ll get back to you.

---

<div class="post-metadata">

**Author:** ![mat](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/mat/32/230_2.png) [@mat](https://discuss.blues.com/u/mat)\
**Post date:** [December 6, 2021, 8:56pm UTC](https://discuss.blues.com/t/swan-and-circuitpython/528/5 "2021-12-06T20:56:07Z")

</div>

Hi There @noskman! Thank you for reporting this. I sorry for the troubles you’re having, we’ll try to get to the bottom of it.

I’d like you to save a copy of your Swan’s memory. To do this,

1. please put your device in bootloader mode  
Hold BOOT, then tap RESET once while still holding boot
2. Then run  
`dfu-util -s 0x8000000:0x200000 -a 0 -U swan_mem.bin`

I’ll send you a PM with how to send the file to me.

I’m sure you’re eager to get started, so as a quick fix, you can try the [previous release](https://github.com/blues/circuitpython/releases/tag/v7.0.0-beta.2%2Bswan_r5) on the Github releases page. The CircuitPython support is the same, the only difference is that it doesn’t include the UF2 bootloader. Hopefully that will work for you so you can start using CircuitPython.

---

<div class="post-metadata">

**Author:** ![mat](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/mat/32/230_2.png) [@mat](https://discuss.blues.com/u/mat)\
**Post date:** [December 7, 2021, 10:17pm UTC](https://discuss.blues.com/t/swan-and-circuitpython/528/6 "2021-12-07T22:17:46Z")

</div>

Thanks @noskman for sending the memory file. When I flashed it to my device I saw the `CIRCUITPY` drive appear, and I could make the `SWANBOOT` drive appear to with a double reset, and then back to the `CIRCUITPY` drive with a single reset.

I’m at a bit of a loss to explain why it’s not working for you. The USB stacks in the bootloader and CircuitPython are essentially the same.

It would be helpful if you could try the previous release that I mentioned above. That will give me another datapoint. I’ll also look into ways we can try to dive deeper into what is happening with USB.

In Control Panel, Device Manager, I see 3 devices associated with Swan - the storage device, the COM port and a WebUSB device.

![image](https://us1.discourse-cdn.com/flex020/uploads/blues/original/1X/31cf880d9ccb25e6d9c1c38641fa1c4e316d7f77.png)

I’m wondering what do you see when your Swan is connected and not showing SWANBOOT?

---

<div class="post-metadata">

**Author:** ![noskman](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@noskman](https://discuss.blues.com/u/noskman)\
**Post date:** [December 8, 2021, 5:06am UTC](https://discuss.blues.com/t/swan-and-circuitpython/528/7 "2021-12-08T05:06:13Z")

</div>

Hi Matt,

I did try the previous release with identical results.

My SWANBOOT drive looks like this:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/blues/original/1X/44435b7c482482796798bc5bfb2cc73a95696b16.png)

And my Device Manager looks like:

 ![dev mgr](https://us1.discourse-cdn.com/flex020/uploads/blues/original/1X/a2ef328a75bb8ba091f9a0a120d3c8b040992ae8.png)

A single RESET and the SWANBOOT drive disappears as does the Adafruit UF2 Bootloader USB Device from Disk Drives in the Device Manager:  
 ![dev mgr no adafruit](https://us1.discourse-cdn.com/flex020/uploads/blues/original/1X/b0f4641d3865f47b1c454d39eba5ac3e4d430174.png)

---

<div class="post-metadata">

**Author:** ![mat](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/mat/32/230_2.png) [@mat](https://discuss.blues.com/u/mat)\
**Post date:** [December 8, 2021, 6:11pm UTC](https://discuss.blues.com/t/swan-and-circuitpython/528/8 "2021-12-08T18:11:28Z")

</div>

Thank you @noskman for those details! With the previous release not working too, that means for some reason the USB stack for CircuitPython is not working on your machine.

I have a few questions to help troubleshoot:

- Do any of the other devices (serial port, WebUSB) appear in your device manager?

- What’s the exact version of Windows you’re using?

- Are you using a USB hub? If you are, which one? If you have a different hub, perhaps try that.

We will continue investigating here in the meantime, but presently we aren’t able to replicate the issue, but we’ll keep looking!
