diff options
| author | Bob McWhirter <[email protected]> | 2021-09-06 14:20:01 -0400 |
|---|---|---|
| committer | Bob McWhirter <[email protected]> | 2021-09-06 14:21:26 -0400 |
| commit | d4bf78a0c1c0a1d66f8db3399ded2892a40bac42 (patch) | |
| tree | 31792346c4981b60c9b8d57d4638e85d008127ca | |
| parent | eff8ae9c4d93cdd44e27af653b16b339f03f11dd (diff) | |
Don't set SAF=true, do set RA=true for Ethernet.
Source-Address-Filtering is not helping the board to receive packets.
For unknown reasons, the Receive-All is required, when in theory
it should not be required. Until we figure it out, follow the
stm32h7xx-hal example of setting RA=true.
| -rw-r--r-- | embassy-stm32/src/eth/v2/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/eth/v2/mod.rs b/embassy-stm32/src/eth/v2/mod.rs index c1956aa16..a06c4cacc 100644 --- a/embassy-stm32/src/eth/v2/mod.rs +++ b/embassy-stm32/src/eth/v2/mod.rs | |||
| @@ -109,7 +109,7 @@ impl<'d, P: PHY, const TX: usize, const RX: usize> Ethernet<'d, P, TX, RX> { | |||
| 109 | mac.maca0hr() | 109 | mac.maca0hr() |
| 110 | .modify(|w| w.set_addrhi(u16::from(mac_addr[4]) | (u16::from(mac_addr[5]) << 8))); | 110 | .modify(|w| w.set_addrhi(u16::from(mac_addr[4]) | (u16::from(mac_addr[5]) << 8))); |
| 111 | 111 | ||
| 112 | mac.macpfr().modify(|w| w.set_saf(true)); | 112 | mac.macpfr().modify(|w| w.set_ra(true)); |
| 113 | mac.macqtx_fcr().modify(|w| w.set_pt(0x100)); | 113 | mac.macqtx_fcr().modify(|w| w.set_pt(0x100)); |
| 114 | 114 | ||
| 115 | mtl.mtlrx_qomr().modify(|w| w.set_rsf(true)); | 115 | mtl.mtlrx_qomr().modify(|w| w.set_rsf(true)); |
