mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-22 16:14:37 +08:00
Ubunutu 20 documentation
This commit is contained in:
+10
-1
@@ -50,7 +50,7 @@ $ tup --version # should be 0.7.5 or later
|
||||
$ python --version # should be 3.7 or later
|
||||
```
|
||||
|
||||
#### Linux (Ubuntu)
|
||||
#### Linux (Ubuntu < 20.04)
|
||||
```bash
|
||||
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
|
||||
sudo apt-get update
|
||||
@@ -59,6 +59,13 @@ sudo apt-get install openocd
|
||||
sudo add-apt-repository ppa:jonathonf/tup && sudo apt-get update && sudo apt-get install tup
|
||||
```
|
||||
|
||||
#### Linux (Ubuntu >= 20.04)
|
||||
```bash
|
||||
sudo apt install gcc-arm-embedded
|
||||
sudo apt install openocd
|
||||
sudo apt install tup
|
||||
```
|
||||
|
||||
#### Arch Linux
|
||||
```bash
|
||||
sudo pacman -S arm-none-eabi-gcc arm-none-eabi-binutils
|
||||
@@ -119,6 +126,8 @@ You can also modify the compile-time defaults for all `.config` parameters. You
|
||||
2. Connect the ODrive via USB and power it up.
|
||||
3. Flash the firmware using [odrivetool dfu](odrivetool#device-firmware-update).
|
||||
|
||||
If you get `/bin/sh: 1: python: not found` while running `make`, change the tup file command to use `python3`
|
||||
|
||||
### Flashing using an STLink/v2 programmer
|
||||
|
||||
* Connect `GND`, `SWD`, and `SWC` on connector J2 to the programmer. Note: Always plug in `GND` first!
|
||||
|
||||
Reference in New Issue
Block a user