Skip to content

A port of Open Source Car Control written in Rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

jonlamb-gh/oxcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oxcc

Building

rustup default nightly

rustup component add rust-src
cargo install --force rustfmt-nightly

rustup target add thumbv7em-none-eabihf

cargo install svd2rust
cargo build

Deploying

Install stlink tools.

./scripts/deploy

# or manually
arm-none-eabi-objcopy \
    -O ihex \
    target/thumbv7em-none-eabihf/debug/oxcc \
    target/thumbv7em-none-eabihf/debug/oxcc.hex

st-flash --format ihex write target/thumbv7em-none-eabihf/debug/oxcc.hex

Debugging

Install OpenOCD:

sudo apt-get install openocd
./scripts/run-openocd

# or manually
# openocd -f board/stm32f7discovery.cfg
cargo run

# or manually
# arm-none-eabi-gdb target/thumbv7em-none-eabihf/debug/oxcc

Links