[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
research-article

Abstract timers and their implementation onto the ARM Cortex-M family of MCUs

Published: 25 March 2016 Publication History

Abstract

Real-Time For the Masses (RTFM) is a set of languages and tools being developed to facilitate embedded software development and provide highly efficient implementations geared to static verification. The RTFM-kernel is an architecture designed to provide highly efficient and predicable Stack Resource Policy based scheduling, targeting bare metal (single-core) platforms.
We contribute by introducing a platform independent timer abstraction that relies on existing RTFM-kernel primitives. We develop two alternative implementations for the ARM Cortex-M family of MCUs: a generic implementation, using the ARM defined SysTick/DWT hardware; and a target specific implementation, using the match compare/free running timers. While sacrificing generality, the latter is more flexible and may reduce overall overhead. Invariants for correctness are presented, and methods to static and run-time verification are discussed. Overhead is bound and characterized. In both cases the critical section from release time to dispatch is less than 2us on a 100MHz MCU. Queue and timer mechanisms are directly implemented in the RTFM-core language (-core in the following) and can be included in system-wide scheduling analysis.

References

[1]
FreeRTOS. (webpage) Last accessed 2015-09-18. [Online]. Available: http://www.freertos.org
[2]
ChibiOS/RT. (webpage) Last accessed 2015-09-18. [Online]. Available: http://www.chibios.org
[3]
RIOT. (webpage) Last accessed 2015-09-18. [Online]. Available: http://riot-os.org
[4]
E. A. Lee, "The problem with threads," Computer, vol. 39, no. 5, pp. 33--42, May 2006.
[5]
T. Baker, "A stack-based resource allocation policy for realtime processes," in Real-Time Systems Symposium, 1990. Proceedings., 11th, Dec. 1990, pp. 191--200.
[6]
P. Lindgren, M. Lindner, and et. al, "RTFM-core: Language and Implementation," in ESWEEK/CPSArch 2014, 2014.
[7]
P. Lindgren, M. Lindner, A. Lindner, V. Vyatkin, D. Pereira, and L. M. Pinho, "A real-time semantics for the IEC 61499 standard," in ETFA 2015, September 8-11, 2015, Luxembourg, 2015.
[8]
J. Eriksson, F. Häggstrom, S. Aittamaa, A. Kruglyak, and P. Lindgren, "Real-time for the masses, step 1: Programming API and static priority SRP kernel primitives." in SIES. IEEE, 2013, pp. 110--113.
[9]
A. Kogan and E. Petrank, "A methodology for creating fast wait-free data structures," ser. PPoPP '12. New York, NY, USA: ACM, 2012, pp. 141--150.
[10]
P. Levis, S. Madden, and et. al., "TinyOS: An operating system for sensor networks," in in Ambient Intelligence. Springer Verlag, 2004.
[11]
A. Dunkels, B. Grönvall, and et. al., "Contiki - a lightweight and flexible operating system for tiny networked sensors," in Emnets-I, Nov. 2004.

Cited By

View all
  • (2023)Measurement Methods for Software Execution Time on Heterogeneous Edge Devices2023 IEEE 21st International Conference on Industrial Informatics (INDIN)10.1109/INDIN51400.2023.10218136(1-6)Online publication date: 18-Jul-2023
  • (2021)uTimer: A Uniform Low-level Timer API for RIOT OS2021 IEEE International Conferences on Internet of Things (iThings) and IEEE Green Computing & Communications (GreenCom) and IEEE Cyber, Physical & Social Computing (CPSCom) and IEEE Smart Data (SmartData) and IEEE Congress on Cybermatics (Cybermatics)10.1109/iThings-GreenCom-CPSCom-SmartData-Cybermatics53846.2021.00016(1-8)Online publication date: Dec-2021
  • (2016)Towards certified compilation of RTFM-core applications2016 IEEE 21st International Conference on Emerging Technologies and Factory Automation (ETFA)10.1109/ETFA.2016.7733551(1-6)Online publication date: Sep-2016

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM SIGBED Review
ACM SIGBED Review  Volume 13, Issue 1
Special Issue on the 5th Embedded Operating Systems Workshop (EWiLi 2015)
January 2016
58 pages
EISSN:1551-3688
DOI:10.1145/2907972
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 25 March 2016
Published in SIGBED Volume 13, Issue 1

Check for updates

Qualifiers

  • Research-article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)12
  • Downloads (Last 6 weeks)1
Reflects downloads up to 21 Dec 2024

Other Metrics

Citations

Cited By

View all
  • (2023)Measurement Methods for Software Execution Time on Heterogeneous Edge Devices2023 IEEE 21st International Conference on Industrial Informatics (INDIN)10.1109/INDIN51400.2023.10218136(1-6)Online publication date: 18-Jul-2023
  • (2021)uTimer: A Uniform Low-level Timer API for RIOT OS2021 IEEE International Conferences on Internet of Things (iThings) and IEEE Green Computing & Communications (GreenCom) and IEEE Cyber, Physical & Social Computing (CPSCom) and IEEE Smart Data (SmartData) and IEEE Congress on Cybermatics (Cybermatics)10.1109/iThings-GreenCom-CPSCom-SmartData-Cybermatics53846.2021.00016(1-8)Online publication date: Dec-2021
  • (2016)Towards certified compilation of RTFM-core applications2016 IEEE 21st International Conference on Emerging Technologies and Factory Automation (ETFA)10.1109/ETFA.2016.7733551(1-6)Online publication date: Sep-2016

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media