RIOT-OS / RIOT

RIOT - The friendly OS for IoT
https://riot-os.org
GNU Lesser General Public License v2.1
4.9k stars 1.98k forks source link

Support CH58x family #20820

Open chrysn opened 1 month ago

chrysn commented 1 month ago

Description

There's a RISC-V (RV32IMAC) chip family called CH58x (sometimes also CH5xx, prominently CH582 and CH583) from Nanjing Qinheng Microelectronics Co., Ltd. (https://www.wch.cn/ / http://www.wch-ic.com/).

The chips runs at 32MHz, feature around 0.5MiB flash, 30KiB RAM, BLE radio and dual USB (host and device), and uses as little as 1.8V at some devices. According to the data sheet, it uses a QingKe implementation of RISC-V.

Applications / boards

The chips are cheap in their category (LCSC has CH582 at 1.11USD single piece / 0.70USD in at 1000pcs).

A prominent example is the BadgeMagic badge also promoted as fossasia badge, which is a board with a 11x44 monochrome LED matrix, battery, and BLE/USB connectivity. The actual manufacturer is rarely ever mentioned, a Python application indicates it could be ShenZen LeSun Electronics Co.Ltd. Beware that there are different versions of what looks like the same badge with completely different hardware. (I have one of those to test with, as do @maribu and @nica-f).

Resources and qualities of implementation

This is what I found when quickly looking around, not comprehensive resources.

Next steps

I don't have immediate plans of adding support; gathering data here so that we have a spot to gather data and interest inside RIOT.

chrysn commented 1 week ago

A few notes from digging further: