-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support CH58x family #20820
Comments
A few notes from digging further:
|
A few field notes for anyone who wants to do this:
Here's a udev rules file that is serving me well (
|
Beware that the referenced ch58x-hal is an older version, nowadays https://github.com/ch32-rs/ch58x-hal provides that crate. Which is nice because it also has BLE support (based on a statically linked library; same goes for their EEPROM access and flash write access), but the blinky example only works half (it flashes the LED and then doesn't do anything further), which I haven't tried to debug yet. |
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.
I don't know the authoritative source of that one -- but it is included in the badgemagic repository.
I don't know the authoritative source of that one -- but it is included in the badgemagic repository.
From putting the names of the object files in the static libraries with
s/.o$/.c/
into search engines, there is no source for that one.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.
The text was updated successfully, but these errors were encountered: