当前位置:网站首页>STM32 full series development firmware installation guide under Arduino framework

STM32 full series development firmware installation guide under Arduino framework

2022-07-31 19:02:00 perseverance52

Arduino框架下STM32Full range of development firmware installation guides


目前基于Arduino框架下开发STM32The firmware of the microcontroller is basically based on:https://github.com/stm32duino,在此之前的STM32There is a relatively early development of firmware:https://github.com/rogerclarkmelbourne,However, the latter has been discontinued,However, it can still be installed.

STM32duinoPreparation before firmware installation

(https://github.com/stm32duino)

  • Supported development boards
    在这里插入图片描述

Develop a configuration file for firmware installation(.json文件)

  • https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json

In most cases this link cannot be accessed directly,导致无法安装STM32固件,A saved offline version is available here.json配置文件.Later, I will teach you how to use this offline configuration file to build a local access method.

  • 例如在Arduino IDEThere are the following questions
    在这里插入图片描述
  • stm32duinoOffline profile
链接:https://pan.baidu.com/s/1YpGrpMQl_e-8oHxhwlVxWA 
提取码:hjbd

STM32Cube MCU Packages 程序烧录软件

This burning software not only provides support for burning in multiple ways,还为Arduino IDEBurning provides a calling interface,所以安装STM32This software is required to develop firmware.

  • 中文下载地址:https://www.stmcu.com.cn/Search/index?csrf_token=13aea149b60a6cfb86805d8f1d3e3cbc&search_keywords=STM32CubeProgrammer&page=1&type=design_resource
    在这里插入图片描述

Provides support for multiple platforms,There is also an instruction manual.我下载的是win版X64的,stm32cubeprg_win64_STM32CubeProgrammer 软件,适用于所有 STM32 STM32CubeProgrammer(STM32CubeProg)是一款多合一的多操作系统软件工具,用于对STM32产品进行编程. STM32CubeProgrammer PictureIt to pass the debug interface(JTAG 和 SWD)和引导加载程序接口(UART、USB DFU、I2C、SPI 和 CAN)读取、写入和验证设备存储器提供了一个易于使用且高效的环境.

  • win版x64位的软件包
链接:https://pan.baidu.com/s/1qKUY1LVZZj4aNkfSz-1vUw 
提取码:gf76

Arduino IDE Installation of firmware

Consider the ease of installation,Personally recommend using the third method directly:Change the firmware source installation method

The original firmware address installation method

准备HFS工具软件,Used to build a local server.

  1. Directly place the offline configuration file provided above,drag in toHFSsoftware in the left column,如下图:
    在这里插入图片描述

  2. The link address that will be generated;http://192.168.0.113:8266/package_stmicroelectronics_index.json拷贝到Arduino IDEDevelopment board URL manager当中,并点击.
    在这里插入图片描述

  3. 在Arduino IDEFind the development board manager and open it
    在这里插入图片描述

  4. Wait for the board manager to load the configuration,搜索stmYou can find it by keyword or by pulling the scroll bar,STM32Development board firmware package.

When loading the board configuration,可以看到HFSSoftware data access:

在这里插入图片描述

Most of the cases in the country are inaccessible.jsonThe development board cannot be found here due to the link.

在这里插入图片描述

This step can solve the situation that the development board cannot be found.If you still can't find the development board or install it:

  1. will be offline in the config file,Download the compressed package,加入到HFS软件中.
https://github.com/stm32duino/Arduino_Core_STM32/releases/download/2.3.0/STM32-2.3.0.tar.bz2

在这里插入图片描述
2. Modify the link to the offline configuration file to point and save,再通过Arduino IDEYou can install it from the development board manager,Equivalent to offline installation.
在这里插入图片描述

  1. If other compressed packages in the configuration file cannot be installed, you can install them according to the steps of this method.
  • Development Board URL Manager Reference:
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

第二种方式:Directly replace the firmware source installation method

  • The reference source of the development board URL manager is as follows:Select the corresponding development board source for your personal needs
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

List of boards after installation

  • STM32Development board main model series selection
    在这里插入图片描述
  • STM32Branch model series selection

在这里插入图片描述

程序烧录(上传)说明

在这里插入图片描述

  1. 使用SWDway to burn.通过jlink/ST-linker工具烧录
    Stlink-V2仿真器:以STM32f103示例

在这里插入图片描述
在这里插入图片描述

  • 使用SWD烧录程序后,(STM32F103最新系统板)Micro USBThe virtual port displayed by the interface
    在这里插入图片描述
  1. 串口烧录.(Jumper cap for serial downloadBOOT0必须置1,否则无法下载)
    在这里插入图片描述

在这里插入图片描述

原网站

版权声明
本文为[perseverance52]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/212/202207311848116748.html