Categories
Uncategorized

macOS Finder and USB Flashing Format (UF2)

Sad Mac

It took me a while to figure this one out. I’m running macOS Sequoia on two different Macs and I would occasionally get Finder lockups. I feel like in with previous versions of macOS I could quit the Finder and restart it in the terminal and things would (mostly) go back to normal. This was not working, and quitting the Finder meant it would never relaunch and I’d be forced to reboot. My Mac Studio at work reboots in under a minute and I can relaunch all my applications fairly easily, but my home (2019) iMac takes a long time to boot back up, so it’s super annoying.

There’s one common thing between these two Macs, and it’s the USB Flashing Format (UF2).

At work I program micro:bit boards. When you plug one into your Mac it shows up in the Finder so you can copy a .UF2 file to it to load new code. At home I program Raspberry Pi Pico boards, which also mount in the Finder on first use, or when holding down the BOOTSEL button when plugging it in.

Matt Godden suggested resetting the Mac’s USB Bus but the solution that seems to be working is to unplug the microcontroller. Yes, unplug it.

It happened again today so I figured I should write this post to remind me, and maybe inform others. Today it happened right as I tried to copy a .UF2 file to a Pico board. I got the “pinwheel of death” so I walked away and when I came back minutes later it was still spinning until I unplugged the board. I am pretty sure I’ve seen it happen with a micro:bit even when I was not trying to copy new code to the board.

So this may happen when copying a file to the board or just even when the board is connected via USB.

So if you are using a Mac to copy a UF2 file to a microcontroller and the Finder locks up try to just unplug the board to see if it fixes is.

Update 2025-05-07

After a few more days of testing I’ve realized that it’s not just an issue with the Finder locking up. There is also an issue with the Finder slowing down. I left a micro:bit plugged in via USB and went about my work and the Finder still worked but suddenly had issues opening folders and displaying files. I took a screenshot and it never showed up on the desktop… until I unplugged the micro:bit! So we’re dealing with an issue that may lock up the Finder but may also slow down the Finder. Sigh…

Update 2025-07-08

To replicate this issue you need to use your Mac. If you just leave a board connected and walk away it seems fine when you return, but the process of actively using your computer, switching applications, creating files, using the Finder, seem to help reveal the slowdown and lockup. I’ll try to get a better sense of things the more it happens.

Update 025-07-30

Still having this issue on macOS 15.4. If I leave a micro:bit connected via USB and try to save files they will not show up in the Finder until the micro:bit is disconnected. This magically fixes things and files suddenly appear. It’s maddening.

Categories
Uncategorized

Syncing a Behringer RD-6 to a Pocket Operator via a Pi Pico

Hello! Check out the post Sync a Behringer TD-3 to a Pocket Operator for additional info, including a diagram.

The full title of this should be Syncing a Behringer RD-6 Analog Drum Machine to a Pocket Operator PO-14 Sub with a Raspberry Pi Pico Microcontroller. That’s a bit long, but it’s also descriptive. The RD-6 can be synced via MIDI, but the Pocket Operators do not do MIDI. The RD-6 does have an analog sync in which will trigger at over 2.5 volts, but the Pocket Operators output about 1 volt when they sync with each other.

I’d seen a few ideas and potential solutions online. One involved a DC boost converter, so I tried one but it didn’t work. Another involved using an overdrive guitar pedal, but I don’t have one…

What I do have are a bunch of Arduino boards of various types. I originally grabbed an Arduino Nano with the idea that I could capture the PO-14 output at 1 volt with an analog pin and then output a pulse on a digital pin as a trigger. The Arduino outputs at 5 volts though, and while I don’t mind making a voltage divider, I also had a Teensy LC on my desk, so I tested with that since it runs on 3 volts. And then, since my desk is fairly large, I grabbed a Raspberry Pi Pico microcontroller which also runs on 3 volts. I used the same Arduino code on the Pico as the Teensy (thanks to the work of Earle F. Philhower, III).

This is literally all there is to the code. I added an LED which blinks when a pulse is read, and then I just connected the signal wire to the same pin as the LED (and the other to ground) and plugged those into the sync in of the RD-6.

I’m new to all this syncing of musical devices, and this may be the wrong way to do it, but it worked for me. I did try to set the RD-6 as the master device and sync the PO-14 to it, but it didn’t seem to work quite right. The voltage may be a bit too high causing erratic behavior on the Pocket Operator.

Since this works, I’ll probably stick with it unless someone tells me it’s a terrible idea or tells me a better way to do it that is cheap, easy, or involves things I already have.

Enjoy the demo video below!