DAPLink
More info
- Creator
- Arm (Mbed project)
- Type
- Debug probe firmware
- License
- Apache 2.0
- Source
- github.com/ARMmbed/DAPLink
Open firmware for the little helper chip on a dev board that turns one USB cable into a debugger, a serial port and a thumb drive.
Plenty of boards carry two microcontrollers: the one you program and a smaller interface chip beside it. DAPLink runs on the latter and shows up on the host as three things at once — a CMSIS-DAP probe that OpenOCD and pyOCD can drive SWD through, a virtual COM port wired to the target's UART, and a USB mass-storage device.
That last one is the trick. Drag a .hex or .bin file onto the pretend disk and the interface chip flashes the target: no drivers, no toolchain, no admin rights on the school's locked-down PCs. It is why the BBC micro:bit worked in classrooms at all. The project grew out of Mbed's CMSIS-DAP firmware and took its current name around 2016. The downside is that the disk really is pretend, and operating systems that write metadata in an unexpected order have been known to confuse it.