Giter Site home page Giter Site logo

example-project's Introduction

This is an example BitThunder project.

To build follow the steps below:

1. Create a valid configuration

make menuconfig

Compiler

Be sure to set the compiler location under Build System -> Toolchain Prefix e.g. if your compiler is located at:

/opt/codesourcery/bin

Then your prefix is /opt/codesourcery/bin/arm-none-eabi- or something similar.

Select Architecture and CPU

Just the relevent architecture under the System Architecture menu. E.g. for STM32 choose ARM and STM32 :)

Linking / Memory Definitions

BitThunder generates a linker description file automatically, but it needs to know what memories are available on your device.

Under the System Architecture menu, configure the Linking (new versions call this Memory) parameters.

Currently BT supports 3 different kinds of memories. Simply enable at least one of them, and define the start address and length in HEX. (One must be Read/Writable, e.g. at least an SRAM).

You can also request different sections to placed in different memories. For micro-controllers you will usually have a FLASH and SRAM. Enable both, and ensure that INIT and TEXT reside in FLASH, where Data and BSS reside in SRAM.

Leave the initial stack sizes as default.

Exit and Save the configuration

2. Compile your kernel.

make

This should compile a valid bitthunder kernel for your platform. Files are output in the bsp folder, e.g. example.elf and example.list ...

example-project's People

Contributors

jameswalmsley avatar

Watchers

James Cloos avatar  avatar

Forkers

jtkim-lab

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.