Giter Site home page Giter Site logo

tock-teensy's Introduction

TockOS port for Teensy 3.6

This repository is an experimental port of the Tock embedded operating system to the Teensy 3.6.

Installation

This repository depends on the standard Tock distribution as a git submodule in the tock/ folder. To download this repo, use:

git clone --recursive https://github.com/shaneleonard/tock-teensy.git

(note the --recursive flag, which is needed to download the tock/ dependency).

Compiling

To compile the kernel, simply run make from the top-level directory. You must have the prerequiste build tools installed, as detailed in the Tock getting started guide.

Programming the Teensy

Connect the Teensy via USB to your computer, and run make program from the root directory. You should see a prompt telling you to press the reset button on your board. Once you press the button, teensy-loader-cli will flash the kernel onto the board using the Teensy's builtin HalfKay bootloader.

Blink

The boards/teensy/src/tests directory contains tests which can be run instead of running the normal kernel main loop. To run blink from the kernel, edit tests/mod.rs to the following:

// Set this function to run whatever test you desire. Test functions are named XXX_test by convention.
pub fn test() {
    blink::blink_test();
}

// Set this to true to make the kernel run the test instead of main.
pub const TEST: bool = true;

Then run make program and the kernel will be compiled and flashed to your Teensy. You should see the orange LED blinking!

To get a blink with UART console output on TX0, run print::print_test() instead.

Packages you need

You'll need the ARM cross compiler on many systems:

sudo apt-get install gcc-arm-none-eabi

tock-teensy's People

Contributors

phil-levis avatar rminnich avatar shaneleonard 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.