# stm32f4xx_ucosii_cpp **Repository Path**: whxway/stm32f4xx_ucosii_cpp ## Basic Information - **Project Name**: stm32f4xx_ucosii_cpp - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-03-08 - **Last Updated**: 2021-03-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Motor Controller ## Introduction 基于 ARM-GCC/G++ 的 stm32f4 电机控制程序。 ### 特点 - 中断驱动 - 面向对象设计 - UCOSII 实时操作系统 ### 其他 暂不支持生成 keil 工程。 ## Dependencies - arm-none-eabi-gcc - cmake - mingw-make - OpenOCD ## Compile ### Debug Version ```shell mkdir build cd build cmake -DCMAKE_TOOLCHAIN_FILE="cmake/toolchain-arm-none-eabi.cmake" -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug .. make -j8 ``` ### Release Version ```shell mkdir build cd build cmake -DCMAKE_TOOLCHAIN_FILE="cmake/toolchain-arm-none-eabi.cmake" -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release .. make -j8 ``` ## Flash ```shell openocd -f interface/jlink.cfg -c 'transport select swd' -f target/stm32f4x.cfg -c build/controller.elf -c 'reset' -c 'exit' ``` ## Debug You Guess How To Debug