STM32开发环境的搭建及使用——STM32CubeMX

本文介绍了STM32CubeMX的安装环境配置,包括JDK和CubeMX软件的安装。详细讲解了如何使用CubeMX新建工程,配置外部晶振,选择GPIO输出模式,并生成MDK-ARM工程。接着展示了如何插入代码实现流水灯功能,并通过Keil观察波形验证实验结果。
摘要由CSDN通过智能技术生成

目录

一、CubeMX安装环境

二、运行stm32CubeMX实现流水灯

 (一)新建工程

(二)插入代码

 (三)实验结果

三、 通过keil观察波形

(一)环境设置

(二) 观察波形


一、CubeMX安装环境

  • 安装jdk

由于STM32CubeMX是Java实现的,需要安装jdk环境。
jdk官网下载链接:
Java Downloads | Oracle

  • 安装STM32CubeMX

下载地址:
STM32CubeMX - STM32Cube initialization code generator - STMicroelectronics

  • 安装过程:

1、以管理员身份运行并安装 SetupSTM32CubeMX-6.3.0.exe ,进入下面这个界面后,点击Next

 2、点I accept t....在next

3、两个都选,,next

 4、默认是安装在c盘,不要出现中文路径,,点yes再next

 5、next

 6、安装完成

点击Done

  •  安装固件库:

打开cubeMX,在help下选择manage em....

选择固件 

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.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值