-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathREADME
More file actions
32 lines (25 loc) · 1.02 KB
/
README
File metadata and controls
32 lines (25 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---------------------Porting uCOSII to the raspberry pi A+/B+/2B-----------------
Configure your toolchain in makefile:
1) for x86_64 host
ARMGNU ?= ./tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf
2) for x86 host
ARMGNU ?= ./tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf
To build, just type:
make
For RPi Model A+/B+
Copy the kernel.img to the first partition (BOOT,FAT32) of the SD card.
For RPi2 Model B
Copy the kernel7.img to the first partition (BOOT,FAT32) of the SD card.
User application in the usrApp folder, it used the bare-metal gpio implement.
Turn on the board, and then you will see UART message (in userAppx) and the ACT LED blink.
---Source tree---
bsp: Board support package included the interrupt, UART, timer
build: The built object
h: header
init: Bootloader asm code
lib: Standard C lib
port: CPUs porting code
ucos: uC/OSII source code v2.9
usrApp: main entry for user application
tools: Toolchain for compilation
doc: uC/OSII docs v2.9