Skip to content
A project that demonstrates how to communicate between the VESC and a STM32F4 discovery board using UART
C Objective-C C++ Makefile Other
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ChibiOS_3.0.2 first commit Oct 8, 2015
Makefile Made the code build with the C89 standard and changed to tickless ker… Oct 9, 2015
README.md Updated readme Oct 9, 2015
bldc_interface.c Updated for compatibility with later firmwares Dec 28, 2018
bldc_interface.h
bldc_interface_uart.c Added another interface file to make the code easier to follow Oct 9, 2015
bldc_interface_uart.h
buffer.c Updated for compatibility with later firmwares Dec 28, 2018
buffer.h Updated for compatibility with later firmwares Dec 28, 2018
chconf.h Made the code build with the C89 standard and changed to tickless ker… Oct 9, 2015
comm_uart.c Added another interface file to make the code easier to follow Oct 9, 2015
comm_uart.h first commit Oct 8, 2015
comm_usb_serial.c first commit Oct 8, 2015
comm_usb_serial.h first commit Oct 8, 2015
crc.c first commit Oct 8, 2015
crc.h first commit Oct 8, 2015
datatypes.h Updated for compatibility with later firmwares Dec 28, 2018
halconf.h first commit Oct 8, 2015
main.c Updated for compatibility with later firmwares Dec 28, 2018
mcuconf.h
packet.c Made the code build with the C89 standard and changed to tickless ker… Oct 9, 2015
packet.h Added another interface file to make the code easier to follow Oct 9, 2015
stm32f4xx_conf.h first commit Oct 8, 2015

README.md

This is a test project for UART communication between the VESC and a stm32discovery board. Almost the full interface of the VESC is implemented in the example, only firmware upload is missing.

Connect PB10 (TX) to RX on the VESC
Connect PB11 (RX) to TX on the VESC
Connect the grounds between the descovery board and the VESC.

To upload the project to a discovery board, just connect the USB cable to the programmer USB port and type:

make upload

Connect the USB port of the discovery board to a computer and run a serial terminal such as screen. Type help to list available commands. Only a few commands are implemented, but more can be added easily in main.c.

I have written a tutorial on how to use and port this code to other platforms here:
http://vedder.se/2015/10/communicating-with-the-vesc-using-uart/

You can’t perform that action at this time.