当前位置:网站首页>Difference and performance comparison between HAL and LL library of STM32
Difference and performance comparison between HAL and LL library of STM32
2022-08-03 16:02:00 【passing bear~】
Introduction to LL and HAL libraries
LL: Low-Layer, low-level library
HAL: Hardware Abstraction Layer, hardware abstraction layer library
Compared with the hal library, the LL library is very streamlined, which is actually a streamlined library.
The configuration options for the LL library are as follows:
In STM32CUBEMX, click "Project Manager" -> "Advanced Settings" in the menu, select "Advanced Settings" in the following interface, and then select the library used after each module

Summary:
1. If the MCU used is of small capacity, then STM32Cube LL will be the best choice;
2. If you combine portability and optimization, use the STM32Cube HAL and replace some calls with specific optimized implementations to maintain maximum portability.In addition, HAL and LL can be used partially concurrently (HAL and LL cannot run concurrently for the same peripheral), or a mixed HAL and LL implementation can be used to obtain the same advantages mentioned above.
STM32 performance comparison using HAL library, standard library, LL library and register operations
Introduction
When developing stm32, the development difficulty and speed of choosing different libraries may vary greatly, and accordingly, the running performance of the developed code will also vary greatly.
The following figure shows several commonly used functions officially given: GPIO flip, TIM PWM output, ADC DMA data acquisition and DMA M2M. The running results developed by using different libraries can be used for reference and comparison, so as to meet the needs of your own development.The selection required by the project.
Summary
The law that code efficiency is inversely proportional to portability is obvious.But compared with Cube HAL, the efficiency advantage of Cube LL is still obvious, almost the same as the efficiency of directly writing registers.And at present, STM32cubeMX has begun to support the direct generation of projects using Cube LL. It is highly recommended for everyone who pursues efficiency in the future.
边栏推荐
- 每日练习------有10个数字要求分别用选择法从大到小输出
- 参与便有奖,《新程序员》杂志福利来袭!
- Deep Learning - Install CUDA and CUDNN to implement GPU operation of tensorflow
- 方舟开服工具、服务器教程win
- Optimal Power Flow (OPF) for High Voltage Direct Current (HVDC) (Matlab code implementation)
- 用友YonSuite与旺店通数据集成对接-技术篇2
- 简介undo log、truncate、以及undo log如何帮你回滚事物?
- 【Unity入门计划】基本概念(7)-Input Manager&Input类
- 产品以及研发团队有使用专业的办公软件,如禅道、蓝湖等,他们应该如何使用 Tita 系统?
- 在 360 度绩效评估中应该问的 20 个问题
猜你喜欢

实习路途:记录给我的第一个实习项目中的困惑

How to get the 2 d space prior to ViT?UMA & Hong Kong institute of technology & ali SP - ViT, study for visual Transformer 2 d space prior knowledge!.

美国国防部更“青睐”光量子系统研究路线

为教育插上数字化的翅膀,网易云信发布「互联网+教育」整体解决方案

深入浅出Flask PIN

Yii2安装遇到Loading composer repositories with package information

6000 字+,帮你搞懂互联网架构演变历程!

【码蹄集新手村600题】将一个函数定义宏

方舟开服工具、服务器教程win

JD6606SP5_JD6606SSP_JD6606SASP_JD6621W7百盛新纪元授权代理商
随机推荐
请问大家,MySQL全量怎么样可以提高性能呢?我这里瓶颈是在Source上,在不增加并行度的情况下,
力扣1206. 设计跳表--SkipList跳表是怎么跳的?
leetcode:899. 有序队列【思维题】
【Unity入门计划】基本概念(8)-瓦片地图 TileMap 02
PWA 应用 Service Worker 缓存的一些可选策略和使用场景
聊聊这个SaaS领域爆火的话题
请问下,flink cdc监控oracle,我看源码是通过sid方式的,请问怎么改成service
如何选择合适的损失函数,请看......
爬虫注意
2021年12月电子学会图形化一级编程题解析含答案:放学
Research on power flow in DC microgrid based on Newton's method (Matlab code implementation)
无内鬼,来点干货!SQL优化和诊断
上亿数据怎么玩深度分页?兼容MySQL + ES + MongoDB
不可忽略!户外LED显示屏的特点及优势
常见分布式理论(CAP、BASE)和一致性协议(Gosssip、Raft)
js中的基础知识点 —— 事件
How Navicat connects to MySQL on a remote server
ffplay视频播放原理分析
泰山OFFICE技术讲座:文字边框高度研究
2021年数据泄露成本报告解读