Introduction Motivation ARM vs MIPS Progress/Future Work
Transcription
Introduction Motivation ARM vs MIPS Progress/Future Work
Embedded Xinu on the ARM 32F4 Discovery Board By: Ethan Weber Department: Mathematics, Statistics, and Computer Science Mentor: Dr. Dennis Brylow Introduction Embedded Xinu is a small operating system (modeled in this diagram) that is used for educational purposes at Marquette University. In order to port Xinu to the ARM architecture, each of the corners in the pyramid must be supported. The three focused on in this research project Device Manager include the User Command Interface, Processor Manager, and Memory Manager. Once implemented, Xinu will be able to function on the ARM 32F4 Discovery board, thus increasing the educational experience offered by Xinu. ARM 32F4 Discovery User Command Interface Processor Manager Memory Manager The ARM 32F4 Discovery board is host to an M4 Cortex processor. This processor runs on THUMB assembly code. The instruction set for the M4 is a super set to all other M series processors. This means that assembly programs written for any of the ARM M series processors will run on this board. Below there is a diagram showing the main components that make up the ARM Discovery board. The USART2 RX and TX labels point towards two pins that were used to create a serial connection. Mini USB Cortex M4 Processor File Manager USART2 RX Accelerometer ARM vs MIPS ARM Register 0-3: 4-11: 12: 13: 14: 15: 16: Alias a1-a4 v1-v8 IP SP LR PC CPSR MIPS Register 0: 1: 2-3: 4-7: 8-15: 16-23: 24-25: 26-27: 28: 29: 30: 31: Alias zero AT v0-v1 a0-a1 t0-t7 s0-s7 t8-t9 k0-k1 s8 sp s9 ra Above are representations of the processor registers needed to perform a context switch. The main differences to consider with ARM include the lack of callee save registers. For ARM, only the special purpose registers (capital letters) and the arguments (a1-a4) must be saved by the context switch. However, ARM also has more special registers than MIPS. USART2 TX Reset Button Motivation Progress/Future Work User Button Audio Out Expand the Embedded Xinu Universe Audio In Micro USB Support Audio Input and Output on Xinu Built Serial Connection Progress Adapted USART Code to Communicate over Serial Connection Created Code for a Context Switch Support Motion Detection on Xinu Further Enrich the Xinu Educational Experience Spark Increased Interest in Embedded Xinu References "Course Announcement." MU COEN 4820 Operating Systems and Networks. N.p., n.d. Web. 26 June 2012. <http://www.eng.mu.edu/corlissg/OpSys.12Sp/>. [Flynn, Ida M., and Ann McIver McHoes. Understanding Operating Systems. Boston, MA: Thomson Course Technology, 2006. Print. "Main Page." Embedded Xinu. N.p., n.d. Web. 26 June 2012. <http://xinu.mscs.mu.edu/Main_Page>. Noergaard, Tammy. Embedded Systems Architecture: A Comprehensive Guide for Engineers and Programmers. Amsterdam: Elsevier/Newnes, 2005. Print. "STM32F4DISCOVERY." - STMicroelectronics. N.p., n.d. Web. 26 June 2012. <http://www.st.com/internet/evalboard/product/252419.jsp>. Future Work Create Interrupts and Scheduling Support the Audio I/0 and Accelerometer Create Relative Coursework for a Classroom Environment