An open source motor controller firmware.
This is the source code for the VESC DC/BLDC/FOC controller. Read more at
https://vesc-project.com/
This fork of VESC firmware is intended to be used with SmoothieDrive ESC hardware.
On an Ubuntu machine, install the gcc-arm-embedded toolchain
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
sudo apt update
sudo apt install gcc-arm-embedded
Add udev rules to use the stlink v2 programmer without being root
wget vedder.se/Temp/49-stlinkv2.rules
sudo mv 49-stlinkv2.rules /etc/udev/rules.d/
sudo udevadm trigger
Build and flash the bootloader
Clone and build the firmware
git clone https://github.com/vedderb/bldc.git vesc_firmware
cd vesc_firmware
make
Flash it using an STLink SWD debugger
make upload
Head to the forums to get involved and improve this project.
The software is released under the GNU General Public License version 3.0