GithubHelp home page GithubHelp logo

dimtass / openchronos-ng-elf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benjaminsoelberg/openchronos-ng-elf

1.0 0.0 0.0 2.68 MB

Fully modular opensource firmware for the eZ430 chronos using TI's new msp430-elf-gcc

License: GNU General Public License v3.0

Makefile 0.61% C 63.26% Python 16.90% Shell 0.44% C++ 0.16% CMake 1.19% Perl 17.45%

openchronos-ng-elf's Introduction

CMake template for TI eZ430 Chronos

dimtass

This repo is a fork from here.

The reason I've forked the repo is that it wasn't working for me and therefore needed to update some parts in order to be able to built using cmake. I've also created a docker image that contains the msp430-gcc-9.2.0.50_linux64 toolchain using packer and Ansible.

There is already some documentation in the original repo, but there are a few things that are deprecated. Also, I'll only provide some info on how to build this repo and flash the code.

Note: The http://www.ti.com/lit/zip/slac388 support package from TI is not available online anymore and I couldn't also find it anywhere. For this reason I was only able to flash the firmware via USB and using mspdebug

Configure the firmware

You can configure the firmware and select which modules you need. To do this, run:

docker run --rm -it -v $(pwd):/tmp -w=/tmp dimtass/msp430-cde-image:latest -c "python ./tools/config.py"

Then select the modules you need. After this you need to create the modinit.c file. To do this run the following command:

docker run --rm -it -v $(pwd):/tmp -w=/tmp dimtass/msp430-cde-image:latest -c "python ./tools/make_modinit.py"

Building the firmware

It's better to use the docker image in order to build the firmware, so you don't have to install the toolchain and several other packages needed for the image. In order to do this you need to run the following command:

docker run --rm -it -v $(pwd):/tmp -w=/tmp dimtass/msp430-cde-image:latest -c ./build.sh

The above command will create a new folder ('build-msp430/) and build the firmware in there. The resulted file will be the openchronos.elf`.

Flashing the firmware

In order to flash the firmware you need the mspdebug tool, but you don't have to install it because it's already installed in the docker image. Nevertheless, you need to give docker access to the USB ports, therefore you need to run the following command (after you've built the firmware)

docker run --rm -it --privileged -v /dev/bus/usb:/dev/bus/usb -v $(pwd):/tmp -w=/tmp dimtass/msp430-cde-image:latest -c ./flash.sh

openchronos-ng-elf's People

Contributors

anilgulecha avatar benjaminsoelberg avatar catsup avatar d-o avatar dimtass avatar dkm avatar dpwe avatar epall avatar g5pw avatar gabrielventosa avatar jeepee avatar madsen avatar maxharm avatar mhasdf avatar midluk avatar miknix avatar nechutny avatar ngerstle avatar pechfunk avatar poelzi avatar pretyman avatar psehorne avatar quoraquestions avatar rdmiller3 avatar rmarku avatar robomotic avatar ronniesalomonsen avatar ryd avatar veprbl avatar

Stargazers

 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.