使用STM32Cubemx创建一个工程并且给出每一步的含义
- 选择芯片型号:芯片型号为STM32F051K8
- 选择芯片型号并且开始工程
- 开启调试功能: debug serial wire
- 配置时钟: 时钟相对于是人的心跳,没有这个时钟那么STM32就无法正常进行工作。
- 时钟树的配置: 单片机的时钟主要就是决定了单片机的运行速度。
- 工程管理: a) 工程名字;b) IDE MDK-ARM; c) copy only the necessary library files; d) generate peripheral init as a pair of .c/.h files per peripheral
- 设置仿真器: 选择STLINK仿真器