You need an STM32F3Discovery (or compatible) board to run the code.
Compiling code for embedded platforms requires specific versions of "nightly" Rust - code can break mysteriously when the nightly version is changed. Please refer this post for the setup which I have used successfully.
You can compile the code by running:
The code can be flashed by running:
You need the st-flash utility to flash the code.
The code will simply read from channel 0 of the MCP3008 ADC and send the data out through the serial port. You can print it out by running:
The Python serial module should be installed.
A USB-to-serial converted should be used to interface the UART pins of the discovery board with the USB port of the PC/Laptop.