Skip to content
Snippets Groups Projects
Commit c9b715ec authored by Samuel Tardieu's avatar Samuel Tardieu
Browse files

Replace INSTALL.org by INSTALL.md

parent e1250e0d
No related branches found
No related tags found
No related merge requests found
# Installing the motor controller
## STM32
You must install the appropriate Rust target and tools:
```shell
$ rustup target install thumbv7m-none-eabi
$ cargo install probe-rs-tools
```
Then flash the executable using
```shell
$ cargo run --release -p dc-motor-driver-hat
```
## Raspberry Pi
On the Raspberry Pi, ensure that `boot/config.txt` contains the line `dtparam=i2c_arm=on,i2c_arm_baudrate=400000`. It is important not to let the default 100kHz speed which causes some bit flipping because of a hardware bug in the BCM2712 SOC with regard to clock stretching.
The Python module is located in `controller/python/controller.py`.
#+TITLE: Installing the motor controller
* STM32
You must install the appropriate target: =rustup target install thumbv7m-none-eabi=.
Execute =cargo build --release -p dc-motor-driver-hat=. The flashable executable will be in =target/thumbv7m-none-eabi/release/dc-motor-driver-hat=.
* Raspberry Pi
On the Raspberry Pi, ensure that =boot/config.txt= contains the line ~dtparam=i2c_arm=on,i2c_arm_baudrate=400000~. It is important not to let the default =100kHz= speed which causes some bit flipping.
The Python module is located in =controller/python/controller.py=.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment