Design and Application of FreeRTOS Thread Execution Time Statistics Method

Pu Zekun, Shen Yong, Chen Lvchao

Integrated Circuits and Embedded Systems ›› 2023, Vol. 23 ›› Issue (8) : 46-49.

PDF(928 KB)
PDF(928 KB)
Integrated Circuits and Embedded Systems ›› 2023, Vol. 23 ›› Issue (8) : 46-49.
TECHNOLOGY REVIEW

Design and Application of FreeRTOS Thread Execution Time Statistics Method

  • Pu Zekun, Shen Yong, Chen Lvchao
Author information +
History +

Abstract

In order to accurately obtain the thread execution time information of embedded real-time operating system,this paper aims at the STMicroelectronics STM32 embedded development platform,takes STM32F407 single-chip microcomputer as an examplebased on the FreeRTOS project generated by STM32CubeMX development tool to improve the thread execution time statistical measurement function and software design,and introduces and configures the time state API interface in the FreeRTOS support package,and proposes the design method of using single-chip microcomputer hardware timer to realize microsecond high-precision thread execution time measurement.The experiment results show that the software design method has high portability and can correctly output the execution time information.It can be used in embedded projects with high thread execution time requirements and STM32 series microcontroller embedded engineering design.

Key words

STM32F407 / FreeRTOS / embedded system / real-time operating system

Cite this article

Download Citations
Pu Zekun, Shen Yong, Chen Lvchao. Design and Application of FreeRTOS Thread Execution Time Statistics Method[J]. Integrated Circuits and Embedded Systems. 2023, 23(8): 46-49

References

[1] 闫保中,许兆新,丁继成,等.嵌入式控制系统开发及应用实例[M].哈尔滨:哈尔滨工业大学出版社,2012.
[2] 林衍照,王亚刚,丁大民.基于FreeRTOS的智能助行器设计[J].单片机与嵌入式系统应用,2022,22(9):54-57,62.
[3] 张龙彪,张果,王剑平,等.嵌入式操作系统FreeRTOS的原理与移植实现[J].信息技术,2012,36(11):31-34.
[4] 熊一鹏,岳伟.FreeRTOS多任务调度机制在监控单元中的应用[J].单片机与嵌入式系统应用,2021,21(9):64-66.
PDF(928 KB)

Accesses

Citation

Detail

Sections
Recommended

/