【STM32开发环境搭建】-2-安装STM32CubeMX

目录

1 下载STM32CubeMX

2 使用STM32CubeMX

2.1 设置Embedded software Package存放路径

2.2 下载并安装STM32的Embedded software Package

结尾


1 下载STM32CubeMX

注册一个ST的账号,单击STM32CubeMX - STM32Cube初始化代码生成器 - 意法半导体STMicroelectronicsicon-default.png?t=O83Ahttps://www.st.com.cn/zh/development-tools/stm32cubemx.html链接,获取最新的STM32CubeMX软件。

Step 1:双击安装包SetupSTM32CubeMX-6.12.1-Win.exe;

Step 2:在弹出的Select install mode对话框中,选择Install for me only(recommended);

Step 3:单机Next

Step 4:勾选同意条款,单击Next;

Step 5:勾选该选项,单击Next;

Step 6:选择合适的安装路径,单击Next;

Step 7:单击Next;

Step 8:等待安装结束;

Step 9:安装结束,单击Next;

Step 10:退出STM32CubeMX的安装,单击Done;

2 使用STM32CubeMX

2.1 设置Embedded software Package存放路径

双击STM32CubeMX的图标,进入其主界面。在使用该工具前,你需要登陆个人的ST账号。

依次单击Help -- > Updater Settings,选择合适的Embedded software Package存放路径。

2.2 下载并安装STM32的Embedded software Package

依次单击Help -- > Manage embedded software packages。

在弹出的Embedded Software Packages Manager的对话框中,找到自己所使用的芯片所属系列(以芯片STM32F030C8T6为例,选择STM32F0。),勾选该包安装即可。

STM32F0的Embedded Software Package安装完成后,对应位置会显示绿色。

HAL(Hardware Abstraction Layer硬件抽象层)固件库安装完成后,就可以在STM32CubeMX进行配置,自动生成STM32的配置文件,以及Keil_V5的工程文件,以实现快速开发。

结尾

获取更多“汽车电子资讯”和“工具链使用”,

请关注优快云博客“汽车电子助手”,做您的好助手。

SetupSTM32CubeMX-5.1.0 Introduction STM32CubeMX is a graphical tool for STM32 microcontrollers. It is part of the STM32Cube™ initiative (see Section 1) and is available either as a standalone application or as an Eclipse plug-in for integration in integrated development environments (IDEs). STM32CubeMX has the following key features: • Easy microcontroller selection covering the whole STM32 portfolio • Board selection from a list of STMicroelectronics boards • Easy microcontroller configuration (pins, clock tree, peripherals, middleware) and generation of the corresponding initialization C code • Easy switching to another microcontroller by importing a previously-saved configuration to a new MCU project • Easy exporting of current configuration to a compatible MCU • Generation of configuration reports • Generation of embedded C projects for a selection of integrated development environment tool chains. STM32CubeMX projects include the generated initialization C code, MISRA 2004 compliant STM32 HAL drivers, the middleware stacks required for the user configuration, and all the relevant files for opening and building the project in the selected IDE. • Power consumption calculation for a user-defined application sequence • Self-updates allowing the user to keep STM32CubeMX up-to-date • Download and update of STM32Cube embedded software required for user application development (see Appendix E for details on the STM32Cube embedded software offer) Although STM32CubeMX offers a user interface and generates C code compliant with STM32 MCU design and firmware solutions, users need to refer to the product technical documentation for details on actual implementations of microcontroller peripherals and firmware.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

汽车电子助手

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值