Skip to content

embeddedboys/ch32v003-usb-drivers

Repository files navigation

CH32V003 USB Drivers

This project is based on rv003usb.

硬件信息
MCU CH32V003 青稞32位RISC-V内核,RV32EC指令集 @48MHz
SRAM 2 KB 易失数据存储区
Bootloader 1920 Bytes 系统引导程序存储区
Flash 16 KB 程序存储区
USB_DP(D+) PD3
USB_DM(D-) PD4
DPU PD5 用于重新触发USB枚举
BOOT Btn PD6 用于在BootLoader阶段检测是否要烧录程序

The following content assumes you are using the CH32V003 USB Dev Board.

Getting Started

Install toolchain and libs

sudo apt install gcc-riscv64-unknown-elf libusb-1.0-0-dev bear

Build the flash the firmware

cd vendor
make

Flash firmware and listen log. This requires a wch-linke debugger

minichlink -w vendor.bin flash -b -T

Develop

generate compile_commands.json and use clangd to index code

bear -- make

Go to vscode, Press Ctrl + Shift + P , the search clangd: Restart language server and press Enter.

Reference

Links

About

a series of usb device drivers for ch32v003 including GPIO/I2C/SPI etc.

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.rv003usb

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors