by UltraViolence · 4y ago · 0 comments
These kind of controllers are more than sufficient for most simple control tasks. ARM is simply too expensive here, since the licensing itself probably costs more than the MCU itself.
[Ed.: Chinese datasheet says "RV32EC", in case anyone is wondering.]
Usually the biggest issue is lack of [good] documentation, but I suspect this will work itself out over time.
Looks like they have a semi-custom debug protocol, and there's a reverse-engineered OpenOCD here: https://github.com/fxsheep/openocd_wchlink-rv
As well as a copy of the source code for the vendor's version of OpenOCD here: https://github.com/kprasadvnsi/riscv-openocd-wch
Probably about good enough to get started with this device with a FOSS toolchain.