stm32环境搭建
mdk安装:https://www.keil.com/download/product/
C:\Program Files\MDK\Core
C:\Program Files\MDK\Pack
STM32cubeMX:https://www.st.com.cn/zh/development-tools/stm32cubemx.html#get-software
C:\Program Files\STM32CubeMx\Core
C:\Program Files\STM32CubeMx\Packs
VSCode:
C:\Program Files\VSCode\Core
器件支持包:
keil:https://www.keil.arm.com/devices/
cubeMX:https://www.st.com.cn/zh/embedded-software/stm32cube-mcu-mpu-packages/products.html
STM32F103C8:https://www.keil.arm.com/devices/stmicroelectronics-stm32f103c8/features/
串口调试工具:
sscom:http://www.daxia.com/
xcom:http://www.openedv.com/thread-279749-1-1.html
comtool:https://github.com/Neutree/COMTool/releases
串口终端工具:
mobaxterm:https://mobaxterm.mobatek.net/download.html
minicom:
picocom:
安装 STM32CubeMX:
JAVA:https://www.java.com/en/download/
STM32Cube 固件包:Help->Manage embedded software packages->C:\Program Files\STM32CubeMx\Packs->勾选“Manual Check”->NO Auto
VSCode方法一(推荐):
配置MinGW:https://www.mingw-w64.org/downloads/
高级系统设置->环境变量->双击Path->C:\mingw64\bin->ctrl+r-cmd->gcc -v
插件下载->C/C++ Extension Pack->Keil Assistant->右键Keil Assistant->拓展设置->右键Keil-R->复制路径->->
需要串口资源:
IIC:2
SPI:4
USART、UART:2
USB:2
CAN:2
SDIO:6
标准波特率系列:110,300,600,1200,1800,2400,4800,9600,14.4K,19.2K,28.8K,33.6K,56Kbps
stm32-vscode环境配置
vscode(插件Embedded IDE)
点击左侧按钮(EIDE)->安装实用工具->代码检查器:Cppcheck->gcc编译器:GUN Arm Embedded->C++
Stm32CubeMX:Updater Settings(勾选"Manual Check","No Auto-Refresh at Application start")->Connection Parameters(Check Connection)->新建工程:Project Manager(勾选"Copy only...","Generate peripheral...")
打开EIDE,新建项目Cortex-M项目->起名:text->存放路径为CubeMX"上一级"文件夹->若没打开工程,双击Code Workspace文件:将启动文件放到core文件夹下
加入代码文件:(项目资源->普通文件夹)->构建配置-CPU类型:Cortex-M3->复制文件STM32....ld文件名填入(构建配置-链接脚本路径)->
打开Makefile:#C define中不要复制-D(项目属性-预处理宏定义)->项目属性-包含目录:core-Inc->
安装实用工具(烧录工具)->OpenOCD->
安装实用工具(调试工具)->Cortex-Debug->构建配置--构建器选项--C++编译器代码优化级别-O0
标签:Files,www,keil,环境,Program,https,com,搭建 From: https://www.cnblogs.com/aQxiong/p/18372596