自己動手做OS, micro kernel develop on Beagleboard-XM(ARMv7) lab1
This is a tutorial on bare-metal [OS] development on the Beagleboard-XM. I will show you how to implement a Helloworld image in this article. 在這篇文章中,我會介紹如何寫一個Helloworld的image. 1. From BeagleBoard-xM System Reference Manual, we can get, "A single RS232 port is provided on the BeagleBoard and provides access to the TX and RX lines of UART3 on the processor." 2. From DM3730 Technical Reference Manual- we can get "THR_REG W UART3 base address is 0x49020000" - 首先我們可以從BeagleBoard-xM System Reference Manual,查到板上子上的RS-232是接在UART3上,再從DM3730 Technical Reference Manual,得知,UART3的THR_REG的位址是0x49020000. I've already added comments in source file, please refer to source code(github) for details. 我把註解加入到檔案中了,請到github下載source。 1.boot.asm #UART3 THR_REG register address .equ UART3_THR_REG, 0x49020000 .arm _start: ldr r0,=UART3_THR_REG adr r1,.L0 bl helloworld .L1: b .L1 .align 2 .L0: .ascii "helloworld\n\0" 2.Helloworld.c int helloworld(unsigned int...