You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Enable ICMP, TCP, and UDP checksum offloading for IPv4 and IPv6. ([#48](https://github.com/stm32-rs/stm32-eth/pull/48))
19
+
* Separate MAC and DMA into separate structs for separate access. ([#39](https://github.com/stm32-rs/stm32-eth/pull/39))
20
+
* Add support for `stm32f107` and fix an MMC interrupt bug. ([#43](https://github.com/stm32-rs/stm32-eth/pull/43), [#42](https://github.com/stm32-rs/stm32-eth/pull/42), [#41](https://github.com/stm32-rs/stm32-eth/pull/41))
21
+
* Update the HALs and dependencies to their latest versions as of 12-07-2022.
Add one of the following to the `[dependencies]` section in your `Cargo.toml` (with the correct MCU specified):
@@ -89,6 +81,69 @@ fn main() {
89
81
}
90
82
```
91
83
92
-
## [smoltcp] support
84
+
85
+
## `smoltcp` support
93
86
94
87
Use feature-flag `smoltcp-phy`
88
+
89
+
## Examples
90
+
91
+
The examples should run and compile on any MCU that has an 802.3 compatible PHY capable of generating the required 50 MHz clock signal connected to the default RMII pins.
92
+
93
+
The examples use `defmt` and `defmt_rtt` for logging, and `panic_probe` over `defmt_rtt` for printing panic backtraces.
94
+
95
+
To run or build them, the following steps should be taken:
96
+
97
+
1. Determine the correct compilation target for the MCU that you're using. For `stm32f107`, it is `thumbv7m-none-eabi`. For all others, it is `thumbv7em-none-eabihf`.
98
+
2. Determine the MCU feature necessary for running on your MCU, e.g. `stm32f745`.
99
+
3. Determine the Additional required features (see section below) necessary to build the example.
100
+
4. Follow the rest of the instructions in the ["Building examples"](#building-examples) or ["Running examples"](#running-examples) subsections.
101
+
102
+
### Additional required features
103
+
104
+
Besides the feature selecting the correct MCU to be used when building and/or running an example, the following additional features are required:
For `stm32` 144-pin nucleo boards that contain an MCU supported by this crate the `example-nucleo-pins` feature should be activated. This causes the examples to use PG11 as TX_EN and PG13 as TXD0, instead of PB11 and PB12, which is the configuration used on these boards.
If the usage of different pins is required, the types and `setup_pins` function in `examples/common.rs` should be edited. If the pin configuration is for a `nucleo` board or other commonly used board, a PR with the changes is most welcome.
0 commit comments