一、安装Stm32 Arduino支持
- 在arduino中添加stm32的开发板地址:https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
- 安装stm32开发板支持
二、安装STM32CubeProgrammer
- 从stm32网站中安装:https://www.st.com/en/development-tools/stm32cubeprog.html,并记住路径
- 根据Arduino提示添加环境变量
三、烧录设置
- 选择烧录方式为J-link,也可根据自己需求选择其他方式。
四、烧录测试
- 编译烧录结果如下: