CMake SDK port for Qinheng Universal MCU.
Currently only some chips are supported, if you need more support you can contact me.
universal MCU | BLE MCU | ||
---|---|---|---|
CH32V003 | CH58X | ||
CH32V203 | CH59X | ||
CH32V307 | CH32V208 |
Third-party library support status.
libs | |
---|---|
CherryUSB | |
TinyMaix | |
tflite-micro | |
wasm-micro-runtime | |
micropython | |
lvgl |
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 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.
warning: This repository can only be used under linux/C++.