What are the main advantages of the stm32 microcontroller?

I have used STM32 for nearly 10 years, and I have done at least 10 projects with it.

It can be said that among the single-chip microcomputers I have used, it is the most worry-free and the best to use, and there will be no messy problems.

I feel that STM32 has been so popular in recent years, and the development board accounts for at least half of the credit.

However, the essential problem is that chips have also been recognized by the market and enterprises. After all, businesses are all about profit.

Let's talk about the advantages of STM32?

  1. easy to learn and use

STM32 has been around for a long time, and the information is very rich in all aspects. With the support of development boards and tutorials on the market, the threshold and cost of learning STM32 have been greatly reduced.

I think ST has been very successful in its positioning from the beginning. It has launched a firmware library that allows engineers to use the microcontroller by directly adjusting the library, eliminating the cumbersome register configuration process and greatly shortening the product development cycle.

In my impression, ST is the first to adopt this development mode. The first time I came into contact with a 32-bit computer was an nxp single-chip microcomputer. I needed to configure the registers and use peripherals by myself. This link alone wasted a lot of time.

Although STM32 has many peripherals and is relatively complicated, it feels simpler than 51 after being familiar with it.

2. Powerful processing capability

The core of the STM32 single-chip microcomputer is based on ARM Cortex-M, which has the characteristics of high performance and low power consumption. It is equipped with a high-speed processor and memory, and can easily handle complex applications.

3. Abundant peripheral interfaces

The STM32 microcontroller supports a variety of peripheral interfaces and communication protocols, such as USB, CAN, SPI, I2C, etc., to facilitate communication with other devices.

4. Ease of debugging and testing

The STM32 microcontroller is equipped with a variety of debugging and testing interfaces, such as SWD and JTAG interfaces, which are convenient for developers to debug and test. These debugging tools are very cheap, and some microcontrollers have thousands of downloads and emulators.

In addition, many STM32 use keil development tools. Although there may be more convenient and easy-to-use tools now, for the older generation of engineers, Keil is the most friendly and convenient.

I have used some single-chip microcomputers to develop with eclipse and plug-ins before, and it is deadly to build a development environment.

5. Richer development ecology

STM32 has many open source development tools and libraries, such as CMSIS, HAL library, etc., which can speed up development time and reduce development cost.

6. Wide range of application fields

STM32 microcontrollers are widely used in various fields, such as consumer electronics, industrial control, automotive electronics, medical equipment, etc., and have good market prospects and potential.

Another point that many engineers may overlook is that ST official website provides overall solutions for different industries.

From single-chip microcomputers to peripheral circuit chips, the official website has suggested selections, but they all recommend their own products.

If you are sure to use ST MCU, but don't know which model to choose, you can refer to this.

7. Cost-effectiveness

The early price of STM32 single-chip microcomputer is relatively low, which can provide cost-effective solutions and is suitable for various application scenarios. However, the price has risen sharply for some reasons later, and it is slowly falling back now.

8. Abundant packaging types

The packages of STM32 series microcontrollers are very rich, suitable for different application requirements and manufacturing processes.

In the STM32 series, common package types include the following:

LQFP (Low profile Quad Flat Package): This package is commonly found in the low-end models of STM32. It has fewer pins and is suitable for manual soldering and small-sized PCBs.

BGA (Ball Grid Array): This package adopts a ball-shaped pin arrangement, which has high density and reliability, and is suitable for high-end applications and small-size PCBs.

TQFP (Thin Quad Flat Package): This package adopts a flat pin arrangement, which is smaller and lower in height than LQFP.

LFBGA (Low profile Fine-pitch Ball GridArray): This package has a smaller pin pitch, suitable for high-density applications and small-size PCBs.

In addition, STM32 also provides QFP, LGA, WLCSP, UFQFPN and other packaging forms to meet different application requirements.

When choosing a package type, it is necessary to consider comprehensive factors such as specific application scenarios, production processes, and costs.

Let's talk about the issues we need to consider when selecting single-chip microcomputers and peripheral chip solutions before product development:

Product function requirements: need to plan the microcontroller peripherals to be used according to the circuit designed by the hardware engineer, and then compare whether the resources of the microcontroller you choose are satisfied, such as clock frequency, Flash, RAM, SPI, IIC, USART, PWM, ADC, etc. .

尺寸要求:根据产品尺寸选择单片机的封装,产品尺寸要求越小,封装也要选小的。

功耗要求:如果产品平时是电池供电,那就要选择低功耗系列的单片机,比如STM32L系列。

成本要求:在满足产品功能的前提下选择最便宜的芯片。

开发周期要求:选择时尽量选择资料/教程丰富的单片机,能快速上手意味着开发周期能缩短。

交货周期要求:如果产品后期量大,需要考虑到代理商/原厂交货周期的问题。

综合以上几点,你会发现,STM32在早期满足了很多点,并且性价比高。

最后彩蛋时间,最近有粉丝问我怎么提升单片机编程思维和水平

我做了开发10几年,累计做过几十个项目,我针对这些项目共性功能,比如任务创建、管理、队列算法、LED特效、按键扫描等,写了一个标准程序框架。

这个架构,我在2019年也录了教程,我做新项目时,直接套用这个架构去写,效率直接起飞。

不出意外的话,应该是你目前能看到最实用、最硬核、最系统的干货。

现在限时放出来给大家看,后期可能会删,这套架构已申请版权,非学员仅供学习使用

可以点击下方⬇️卡片看文章开头领取

单片机入门到高级开挂学习路径(附教程+工具)

单片机入门到高级开挂学习路径(附教程+工具)

单片机入门到高级开挂学习路径(附教程+工具)

或者可以找「无际单片机」全网同名的。

下面是更多无际原创个人成长经历、行业经验、技术干货

最近在学C语言,非常痛苦,怎么办?

C语言开发单片机为什么大多数都采用全局变量的形式?

单片机怎么实现模块化编程?思维+实例+系统教程(实用程度令人发指)

c语言回调函数的使用及实际作用详解

spi时序图怎么分析,怎么看懂spi时序图

Guess you like

Origin blog.csdn.net/weixin_43982452/article/details/129671176