Giter VIP home page Giter VIP logo

vesc_wand's Introduction

VESC Wand Firmware

This is the firmware for the VESC Wand. It runs on the NRF52840 and uses the Zephyr OS. At the time of writing it uses Zephyr version 2.0.99; you can use this guide to Zephyr up and running. My colleague and friend Joel also made a tutorial on how to get Zephyr up and running.

https://www.youtube.com/watch?v=HulT3RVHoKk

After getting the zephyr toolchain and cloning zephyr, this can be added to the end of ~/.bashrc to prepare the environment:

export PATH="$HOME/.local/bin:$PATH"
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
export ZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk/
source /path/to/zephyrproject/zephyr/zephyr-env.sh

When the toolchain works, you can creade a build directory, from which you can run

cmake -DBOARD=nrf52840dk_nrf52840 -G "Eclipse CDT4 - Unix Makefiles" ../path_to_wand_fw/

Then build files and an eclipse project will be created in that directory. Then you can run

make

to build the project. The compiled firmware will then be put in

zephyr/zephyr.bin

under the build directory.

To upload it to the wand, any SWD programmer can be used. There is also a flash rule in the makefile which can be used with a jlink programmer and the nrf command line tools, but the easiest way to upload the firmware is by using the VESC as an SWD programmer and the and the Custom File tab in the SWD Prog page of VESC Tool.

Fonts and graphics for the display can be generated using Display Tool

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.