1. 基于STM32CubeIDE搭建开发环境 --- 概述
2019-12-25 本文已影响0人
mz8023yt
概述
目前主流的STM32开发环境是ARM公司的KEIL软件, 由于KEIL对于STM32大部分型号是收费的, 使用需要破解, 存在版权问题. 并且使用KEIL编译大型工程, 编译太慢了, 编译耗时长. 因此本系列博客使用的开发环境将全部使用免费的软件工具.
软件工具
本系列博客将使用以下软件工具进行开发:
- STM32CubeIDE 1.2.0 --- 建立工程、代码编辑、编译、调试
- STM32CubeProg / CoFlash --- 下载程序
- Git Bash / TortoiseGit / GitHub Desktop --- 版本控制工具
备注: 其中 TortoiseGit 工具没有桌面图标, 它是基于右键菜单的工具.
![](https://img.haomeiwen.com/i11006334/a851f8bbc2a2b7c1.png)
软件下载链接:
- STM32CubeIDE:
https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-ides/stm32cubeide.html - STM32CubeProg:
https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stm32cubeprog.html - CoFlash:
官网 http://www.coocox.org/ 挂了, 请另行在第三方站点下载. - Git Bash:
https://git-scm.com/ - TortoiseGit:
https://tortoisegit.org - GitHub Desktop:
https://desktop.github.com/
硬件平台
本系列博客使用到硬件平台为:
- STM32F103RCT6 最小系统板
F103RC 原理图: https://github.com/maziot-stm32/STM32F103RC.Resource
![](https://img.haomeiwen.com/i11006334/1a738560ea2a76d6.png)
- ST-LINK/V2
![](https://img.haomeiwen.com/i11006334/19beb0a478aa5b55.png)
SDK 软件包
本系列博客使用 ST 官方提供的 STM32CubeF1 软件包上进行二次开发.
![](https://img.haomeiwen.com/i11006334/65f53fc12465dd52.png)
下载链接:
参考文档
- 《FreeRTOS 内核实现与应用开发实战—基于STM32》
- 《零死角玩转STM32—F103指南者》
- 《Cortex M3 权威指南》
代码开源组织
组织名: maziot-stm32
链接: https://github.com/maziot-stm32