Git Product home page Git Product logo

kozos-pic's Introduction

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 use XC32-compiler and pinguino-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 original mips-elf-objdump has a bug which disable to convert elf files to other format files.
    Please use this one fixed the bug.
    You can find p32-objdump in pinguino-compilers/(Your OS version)/p32/bin/ directory.
    And rename to mips-elf-gcc or change Makefile.

  • Terminal Emulator
    For example, Tera Term and minicom.

    • 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.

  1. kzload> load

  2. Send os/kozos.hex by xmodem transfer.

  3. 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を想定しています。

ブレッドボード図

ブレッドボード図 ※気が向いたら見やすいように書き直します

kozos-pic's People

Contributors

envzhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tjobanpu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.