# stEnvConfig **Repository Path**: cat-nxm/st-env-config ## Basic Information - **Project Name**: stEnvConfig - **Description**: 在vscode中快速配置基于arm-gcc+openocd的stm32/8工程 - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-04 - **Last Updated**: 2021-08-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # stEnvConfig #### 介绍 用于在vscode中快速配置makefile的stm32/8工程 #### 软件架构 TestFile 测试用makefie ConfigFile 模板文件 VS2019 开发,语言C/C++ #### 需要的软件和工具。 1. 下载最新版 [VS Code](https://code.visualstudio.com/) ,所需插件C/C++、ARM、Cortex-Debug 2. 下载安装 [MINGW64](https://sourceforge.net/projects/mingw-w64/files/) ,添加到环境变量,将bin目录下mingw32-make.exe复制一份改名为make.exe 3. 下载安装[GNU Arm Embedded Toolchain](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads) 安装后需要将软件的安装目录下的bin和binx64文件夹设置进入环境变量PATH中 4. [下载 OpenOCD for Windows](http://gnutoolchains.com/arm-eabi/openocd/) 下载后的文件不是安装包,将bin文件夹路径加入用户环境变量PATH中 5. [STM32CubeMX](http://www.stm32cube.com/) 用于生成带makefile的工程 #### 使用说明 编译完成后,复制一份ConfigFile文件夹到生成的exe路径,并将exe路径添加到环境变量, 在STM32CubeMX中生成带makefile的工程路径cmd,执行 **stenv** 即可完成配置。