DOI QR코드

DOI QR Code

Design of Lightweight RTOS for MCU

MCU를 위한 경량화된 RTOS 설계

  • 박창규 (한국 폴리텍VII대학 부산캠퍼스 전자과)
  • Received : 2011.04.29
  • Accepted : 2011.05.21
  • Published : 2011.06.30

Abstract

RTOS in the embedded system is a powerful tool for the design of multi-tasking. However, previous RTOS has large proportion in the MCU with limited memory. So it is difficult to apply RTOS. In this paper, I removed less frequently used features from the traditional RTOS, and designed lightweight RTOS that schedules and manages the resources with minimal code. I used techniques to obtain user memory using sharing stack, and to reduce the overhead at context. Considering ratio of kernel and applications, the RTOS designed in this paper is available on the MCU with more than 4KB of program memory.

RTOS는 임베디드 시스템 환경에서 멀티태스킹 동작을 설계하는데 강력한 도구이다. 그러나 협소한 메모리를 가진 MCU에서는 응용프로그램에 비해 기존의 RTOS가 차지하는 비율이 크기 때문에 적용하기 어려웠다. 본 논문에서는 기존의 RTOS에서 사용빈도가 적은 기능을 제거하고, 스케줄링과 자원 관리의 기능만 가지고 최소한의 코드로 동작하는 경량화된 RTOS를 설계하였다. 공유 스택을 사용하여 사용자 메모리를 확보하며, 태스크의 문맥 전환시에 발생하는 오버헤드를 감소시키고, TCB등의 사이즈를 축소하는 기법을 사용하였다. 설계 및 검증 결과, 커널의 사이즈를 1KB이하로 축소할 수 있었고, 커널과 응용 프로그램의 비율을 고려해 볼 때, 본 논문에서 설계한 RTOS는 4KB이상의 프로그램 메모리를 가진 MCU에서 사용할 수 있다.

Keywords

References

  1. http://en.wikioedia.org/wiki/Real-time_operating_system
  2. Jean J. Lavrosse, "MicroC/OS-II 실시간 커널 제2판", 에이콘 출판사, 2005
  3. 송용수, "ARM 7 BIBLE", 복두출판사,2004
  4. Silverschatz ,Galvin ,"Operating System Conceps 7th Edition", JOHN WILEY & SONS. INC, 2004
  5. http://www.FreeRTOS.org
  6. http://www.circuitcellar.com/avr2004/DA3650.html
  7. 김범준, "만들면서 배우는 OS커널의 구조와 원리" 한빛미디어, 2005
  8. 카와이 히데미, "OS 구조와 원리:OS 개발 30일 프로젝트",한빛미디어, 2007
  9. Jean J. Lavrosse, "Embedded Systems Building Blocks 2nd Edition", 에이콘 출판사, 2008
  10. 김종욱, "혼자서도 즐기는 임베디드 시스템", 홍릉과학출판사, 2010
  11. Atmel, "ATmega128 DataSheet", Atmel Corporation, 2011
  12. 손현승, "소형 다관절 로봇을 위한 RTOS", 홍익대학교 대학원, 2008

Cited by

  1. 항공기 3차원 충돌회피 알고리즘 구현과 실시간 운영체계를 이용한 Micro Controller Unit의 성능 비교 vol.12, pp.5, 2011, https://doi.org/10.20910/jase.2018.12.5.48