This crate implements a smoltcp device interface phy::Device
for
the STM32H7 series of microcontrollers.
Multiple PHYs are supported: - SMSC LAN8742a - Micrel KSZ8081R
To build this crate, a device feature of stm32h7xx-hal must be selected. For example:
cargo build --features stm32h743v
When using this crate as a dependency, it re-exports the device features so you can specify them in Cargo.toml
stm32h7-ethernet = { version = 0.2.0, features = ["stm32h743v"] }
Specifing device features is not nessesary if an identical version of stm32h7xx_hal is in use somewhere else in your dependency tree. In this case cargo unions the feature flags.
NB: There is no ethernet peripheral on H7A3/H7B3/H7B0 parts.
rustup target add thumbv7em-none-eabihf
rustup component add llvm-tools-preview
cargo install cargo-binutils
Targeting the STM32H747I-DISCO evaluation board from ST.
Note: Close solder jumper SB8!
Targeting the NUCLEO-H743ZI2 evaluation board from ST.
Quickstart:
```
cargo objcopy --example nucleo-h743zi2 --release --features="phylan8742a stm32h7xx-hal/rt stm32h7xx-hal/revisionv stm32h743v" -- -O binary target/thumbv7em-none-eabihf/release/examples/nucleo-h743zi2.bin
D:
).cp ./target/thumbv7em-none-eabihf/release/examples/nucleo-h743zi2.bin D: ```
Licensed under either of
at your option.