Git Product home page Git Product logo

desideria's Introduction

Experiments in bare metal code.

RISC-V is the only architecture currently implemented.

Building

The preferred toolchain is the Sifive GNU embedded toolchain from https://www.sifive.com/software

Tested with CMake 3.21, might still work with 3.19 but not tested anymore.

cd desideria
cmake -S . -B build -G Ninja -DBOARD=longan -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-gnu-riscv64.cmake
cmake --build build

Flash using whatever tools you normally use. The binaries will be found under ./build/path/to/project, e.g. ./build/examples/hello_libc/example_hello_libc.elf

There are .bin and .hex files as well for flash tools that do not support loading .elf files.

Supported boards

Working:

  • Seeedstudio GD32VF1 development board
  • Sipeed Longan Nano
  • Sparkfun Red-V Redboard

In progress:

  • Bouffalo Labs BL702 (XT-ZB1 dev board)
  • Bouffalo Labs BL602
  • Hosted environment (running as a Linux executable)

Future:

  • ARM?
  • ESP32-C3

Repository layout

The repository directory tree is organized as follows:

  • arch/ contains code for a specific CPU architecture, such as thread context switching code.
  • bsp/ contains code specific to each particular board, primarily pin configurations and onboard devices.
  • core/ contains platform-independent code for the core kernel features
  • dev/ contains device drivers
  • examples/ contains code usage examples
  • include/ contains some useful header files that are usable without anything from core or other Desideria code
  • lib/ contains third-party libraries
  • soc/ code specific to a chip or chip family, but that can be shared across all boards with that chip
  • svd/ contains hardware descriptions used for generating the MMIO headers
  • sys/ contains libraries that are useful to applications but not required by the core kernel
  • test/ contains automated tests to run on devices
  • tools/ contains host side tools

desideria's People

Contributors

jnohlgard avatar

Stargazers

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