※日本語は下の方にあります。
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.
KZLOAD(kozos boot loader) loads firmware on RAM memory by XMODEM transfer and execute that.
The loaded file must be hex file format.
KOZOS has functions like below.
- Memory Management
- Thread Managemnt
- Multi Task
- Message Box
And has drivers like below.
- Serial Driver
- Timer Driver
Displayed charactors on the led panel can be changed from PC by contacting with serial.
I will upload this source code after several weeks.
-
mips-elf-gcc
It may be possible to useXC32-compilerandpinguino-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-objdumphas a bug which disable to convert elf files to other format files.
Please use this one fixed the bug.
You can findp32-objdumpin pinguino-compilers/(Your OS version)/p32/bin/ directory.
And rename tomips-elf-gccor change Makefile. -
Terminal Emulator
For example,Tera Termandminicom.- Setting
| Baud Rate | 9600 bps |
| Data Length | 8bit |
| Stop bit Length | 1bit |
| parity | none |
| Hardware Flow Contorl | none |
| Software Flow Control | none |
-
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.
To build this OS, please run the following command.
$ cd bootload
$ make
$ cd ../
$ cd os
$ make
In your serial console, please run the following command.
-
kzload> load -
Send
os/kozos.hexby xmodem transfer. -
kzload> run
KOZOS-PIC is released under MIT license.
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を想定しています。