Giter Site home page Giter Site logo

h8_emulator's Introduction

h8_emulator

Description

h8_emulator emulates H8/3069F board.

Build

$ mkdir build
$ cd build
$ cmake ..
$ make

Usage

$ ./h8emu kzload.elf

# on another terminal
$ ./sender ser1

Demo

Start bootloader.

$ ./h8emu kzload.elf
Loading segment 0
Loading segment 1
Loading segment 2
Loading segment 3
Start execution from 0x100

Start serial console.

$ ./sender ser1
?kzload (kozos boot loader) started.
kzload> load
(command) send kozos
Sending [kozos]
Sending blocks......................................................................................................................................done.

XMODEM receive succeeded.
kzload> run
starting from entry point: 400100
kozos boot succeed!

command> MAC: 001122334455
network ready.

unknown.
command> 

sender is a helper program to interact with h8emu's serial port. Press ':' to enter command mode.

  • send (file)
    • read the file and send to h8emu process
  • exec (executable file)
    • execute the file and send the output to h8emu process

Enable networking

# Prepare tap device
$ sudo ip tuntap add dev tap0 mode tap user h8

# Assign address to the tap device
$ sudo ip addr add 10.0.0.2/24 dev tap0

# Link up the tap device
$ sudo ip link set tap0 up

# Run your binary
$ sudo ./h8emu kzload.elf

h8_emulator's People

Contributors

shimomura1004 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.