Skip to content

sullivan986/wch-sdk

Repository files navigation

wch-sdk

CMake SDK port for Qinheng Universal MCU.

support content

Currently only some chips are supported, if you need more support you can contact me.

universal MCU BLE MCU
CH32V003 alt text CH58X alt text
CH32V203 alt text CH59X alt text
CH32V307 alt text CH32V208 alt text

Third-party library support status.

libs
CherryUSB alt text
TinyMaix alt text
tflite-micro alt text
wasm-micro-runtime alt text
micropython alt text
lvgl alt text

How to use

It is easy to use the library by simply setting up the path to the compilation toolchain and then using the config_app function as in the example.

clone repository and install toolchains

Clone the repository and download the toolchain.

git clone --recursive https://github.com/sullivan986/wch-sdk
cd wch-sdk
source bootstrap.sh

Wait for the download to complete and start using the hello_world example.

cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -Sexample/hello_world -Bbuild -G Ninja
cmake --build build --config Release --target hello_world --

Then you will see the app.hex file in the build directory.

Notice

warning: This repository can only be used under linux/C++.

About

CMake SDK suitable for Qinheng Universal MCU.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published