当前位置:网站首页>Arduino框架下STM32全系列开发固件安装指南
Arduino框架下STM32全系列开发固件安装指南
2022-07-31 18:48:00 【perseverance52】
Arduino框架下STM32全系列开发固件安装指南
目前基于
Arduino
框架下开发STM32单片机的固件基本都是基于:https://github.com/stm32duino
,在此之前的STM32开发固件还有一个比较早期的:https://github.com/rogerclarkmelbourne
,不过后者已经停止开发了,不过依旧还是可以安装。
STM32duino固件安装前的准备
(https://github.com/stm32duino)
- 所支持的开发板
开发固件安装的配置文件(.json
文件)
https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
大多数情况下这个链接直接访问不了,导致无法安装STM32固件,这里提供保存下来的离线版的
.json
配置文件。后面会教大家如何利用这个离线的配置文件来搭建本地访问的方式。
- 例如在Arduino IDE里面报如下的问题
stm32duino
离线配置文件
链接:https://pan.baidu.com/s/1YpGrpMQl_e-8oHxhwlVxWA
提取码:hjbd
STM32Cube MCU Packages
程序烧录软件
这个烧录软件不仅提供多种方式的烧录支持,还为Arduino IDE烧录提供了调用接口,所以安装STM32开发固件时需要安装此软件。
- 中文下载地址:https://www.stmcu.com.cn/Search/index?csrf_token=13aea149b60a6cfb86805d8f1d3e3cbc&search_keywords=STM32CubeProgrammer&page=1&type=design_resource
提供了支持多平台的,还有使用说明书。我下载的是
win版X64
的,stm32cubeprg_win64_STM32CubeProgrammer 软件,适用于所有 STM32 STM32CubeProgrammer(STM32CubeProg)是一款多合一的多操作系统软件工具,用于对STM32产品进行编程。 STM32CubeProgrammer PictureIt 为通过调试接口(JTAG 和 SWD)和引导加载程序接口(UART、USB DFU、I2C、SPI 和 CAN)读取、写入和验证设备存储器提供了一个易于使用且高效的环境。
win版x64位
的软件包
链接:https://pan.baidu.com/s/1qKUY1LVZZj4aNkfSz-1vUw
提取码:gf76
Arduino IDE 固件的安装
考虑到安装的简便性,
个人推荐直接使用第三种方法:更换固件源安装方法
原固件地址安装方法
准备HFS
工具软件,用来搭建本地服务器。
直接将上面提供的离线配置文件,拖入到到HFS软件左侧栏中,如下图:
将生成的链接地址;
http://192.168.0.113:8266/package_stmicroelectronics_index.json
拷贝到Arduino IDE
的开发板网址管理器
当中,并点击好
。在Arduino IDE找到开发板管理器打开
等待开发板管理器加载完配置后,搜索
stm
关键字或者拉动滚动条就可以找到,STM32开发板固件包了。
在加载开发板配置时,可以看到
HFS
软件的数据访问情况:
国内大部分情况就是无法访问
.json
链接导致的这里无法找到开发板。
这一步可以解决找不到开发板的情况。如果还是找不到开发板或安装上去:
- 将离线的配置文件中的,压缩包下载下来,加入到
HFS
软件中。
https://github.com/stm32duino/Arduino_Core_STM32/releases/download/2.3.0/STM32-2.3.0.tar.bz2
2. 修改离线的配置文件的链接指向并保存,再通过Arduino IDE的开发板管理器那里去安装就可以了,相当于离线安装。
- 配置文件中的其他压缩包如果也无法安装可以依照此方法步骤安装即可。
- 开发板网址管理器参考:
http://dan.drown.org/stm32duino/package_STM32duino_index.json
http://arduino.esp8266.com/stable/package_esp8266com_index.json
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
第二种方式:直接更换固件源安装方法
- 开发板网址管理器参考源如下:
针对个人需求选择对应的开发板源
http://dan.drown.org/stm32duino/package_STM32duino_index.json
https://github.ocrobot.com/down/esp8266/package_esp8266com_index.json
https://github.ocrobot.com/down/arduino-esp32/package_esp32_index.json
http://mcu.lvjianze.cn/study/esp32/package_esp32_index.json
https://github.ocrobot.com/down/stm32duino/package_stmicroelectronics_index.json
http://mcu.lvjianze.cn/study/stm32/package_stmicroelectronics_index.json
https://github.ocrobot.com/down/LGT8FX/package_lgt8fx_index.json
安装后的开发板列表
- STM32开发板主型号系列选择
- STM32分支型号系列选择
程序烧录(上传)说明
- 使用
SWD
方式烧录。通过jlink/ST-linker工具烧录
Stlink-V2仿真器:以STM32f103
示例
- 使用
SWD
烧录程序后,(STM32F103最新系统板)Micro USB接口显示的虚拟端口
- 串口烧录。(串口下载时跳线帽
BOOT0
必须置1
,否则无法下载)
边栏推荐
- 浅谈网络安全之算法安全
- 给定一个ip地址,子网掩码怎么算网络号(如何获取ip地址和子网掩码)
- Bika LIMS 开源LIMS集—— SENAITE的使用(检测流程)
- Verilog实现占空比为5/18的9分频
- JD.com searches for products by keyword API
- AcWing 1282. Search Keyword Problem Solution ((AC Automata) Trie+KMP)+bfs)
- 淘宝/天猫获得淘口令真实url API
- Introduction of Jerry voice chip ic toy chip ic_AD14NAD15N full series development
- 九齐ny3p系列语音芯片替代国产方案KT148A性价比更高420秒长度
- The article you worked so hard to write may not be your original
猜你喜欢
随机推荐
INeuOS industrial Internet operating system, the equipment operational business and "low code" form development tools
认识异常 (看完这篇你就懂了)
OSPFv3的基本配置
Combinatorics Notes (6) Associative Algebra of Locally Finite Partially Ordered Sets, Möbius Inversion Formula
基于WPF重复造轮子,写一款数据库文档管理工具(一)
UserAgent 解析
Flink_CDC搭建及简单使用
1161. 最大层内元素和 : 层序遍历运用题
Masterless replication system (2) - read and write quorum
MySQL---子查询
Bika LIMS 开源LIMS集—— SENAITE的使用(检测流程)
ojdbc8 "Recommended Collection"Given an ip address, how does the subnet mask calculate the network number (how to get the ip address and subnet mask)
常用的安全渗透测试工具(渗透测试工具)
第七章
MySQL---Create and manage databases and data tables
21.支持向量机—核函数的介绍
MySQL---sort and pagination
Concurrency, Timing and Relativity
leetcode 665. Non-decreasing Array