Awesome
KOZOS-PIC
※日本語は下の方にあります。
Overview
This is a Embeded OS for PIC32MX270F256B based on Japanese "KOZOS" which is developped for learning and hobby.
This repositry consists of that bootloader and OS.
This OS is developped with full scratch programing and bare metal programing.
Bootloader
KZLOAD
(kozos boot loader) loads firmware on RAM memory by XMODEM
transfer and execute that.
The loaded file must be hex file format.
OS
KOZOS
has functions like below.
- Memory Management
- Thread Managemnt
- Multi Task
- Message Box
And has drivers like below.
- Serial Driver
- Timer Driver
Demo
Displayed charactors on the led panel can be changed from PC by contacting with serial.
I will upload this source code after several weeks.
Requirement
Software
-
mips-elf-gcc
It may be possible to useXC32-compiler
andpinguino-compiler
.I don't have checked yet.
I installed with this command.
$ ../gcc-7.2.0/configure --prefix=(your install directry) --target=mips-elf --disable-nls --disable-threads --disable-shared --enable-languages=c --disable-bootstrap --disable-libssp
$ make -j4
$ make install
-
binutils
The originalmips-elf-objdump
has a bug which disable to convert elf files to other format files.
Please use this one fixed the bug.
You can findp32-objdump
in pinguino-compilers/(Your OS version)/p32/bin/ directory.
And rename tomips-elf-gcc
or change Makefile. -
Terminal Emulator
For example,Tera Term
andminicom
.- Setting
Baud Rate | 9600 bps |
Data Length | 8bit |
Stop bit Length | 1bit |
parity | none |
Hardware Flow Contorl | none |
Software Flow Control | none |
Hardware
-
Target Board
KOZOS-PIC has been tested on PIC32MX270F256B.
So you need such the above board or the compatible board. -
Serial conversion cable
Of course, if your computer has a serial port, you don't need it.
Build
To build this OS, please run the following command.
$ cd bootload
$ make
$ cd ../
$ cd os
$ make
Usage
In your serial console, please run the following command.
-
kzload> load
-
Send
os/kozos.hex
by xmodem transfer. -
kzload> run
License
KOZOS-PIC is released under MIT license
.
Contact
If you are find something wrong with this OS or my English, please tell me because I am beginner at programing and English.Of course, I welcome your quetions,too.
Twitter : @envzhu
開発中
ここで学習用組込みOS「KOZOS」をPIC(MIPS)に移植して、それを発展させたものです。
ターゲットはPIC32MX270F256B
を想定しています。
ブレッドボード図
※気が向いたら見やすいように書き直します