- CMake
- Ninja
- arm-none-eabi-gcc
- openocd
- STM32CubeMX(可选)
-
克隆仓库
git clone https://github.com/zouyidagh/mechrevo26.git
-
进入项目目录
cd mechrevo26 -
配置CMake
cmake --preset Debug
-
构建
cmake --build --preset Debug
5 配置烧录文件: 修改flash.cfg烧录配置文件内容,对应你使用的烧录器
- 烧录固件
openocd -f flash.cfg