Documentation

stm32h7-ethernet

docs.rs Travis Crates.io

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.

Prerequisites

rustup target add thumbv7em-none-eabihf rustup component add llvm-tools-preview cargo install cargo-binutils

Hardware Examples

STM32H747I-DISCO

Targeting the STM32H747I-DISCO evaluation board from ST.

Note: Close solder jumper SB8!

NUCLEO-H743ZI2

Targeting the NUCLEO-H743ZI2 evaluation board from ST.

Quickstart:

```

Build the .bin file

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

Copy it to your device (in this case located at path D:).

cp ./target/thumbv7em-none-eabihf/release/examples/nucleo-h743zi2.bin D: ```

License

Licensed under either of

at your option.