Hasty Briefsbeta

Bilingual

World's Cheapest ARM Debugger is Actually RISC-V

a day ago
  • Author built an ARM debugger using a 10¢ RISC-V ch32v003 microcontroller and free components from disposable vapes.
  • Project motivated by a community bounty and desire for simpler, hardware-focused embedded work using C and minimal libraries.
  • ch32v003's low-speed USB (rv003usb) limits to interrupt endpoints, but CMSIS-DAP V1 spec supports them.
  • Ported DAPLink to ch32fun and rv003usb; probe recognized by pyOCD on macOS after fixing a bit masking bug in PIN_SWDIO_OUT.
  • pyOCD works with libhid on macOS but has issues with libusb on Linux; openocd works on Linux after compiling from source.
  • Author praises SWD protocol simplicity and the supportive RISC-V community around WCH microcontrollers.