vedderb / vesc_wand

This is the firmware for the VESC Wand remote control

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

This is the firmware for the VESC Wand remote control

License:GNU General Public License v3.0


Languages

Language:C 99.9%Language:C++ 0.1%Language:CMake 0.1%