From a63847944f96c2b083bedf6958824a1435161bcf Mon Sep 17 00:00:00 2001 From: Bob McWhirter Date: Wed, 21 Jul 2021 16:48:42 -0400 Subject: [PATCH] Reset the examples to the original F4 flavor. --- examples/stm32f4/.cargo/config.toml | 3 +-- examples/stm32f4/src/bin/spi_dma.rs | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/stm32f4/.cargo/config.toml b/examples/stm32f4/.cargo/config.toml index f7173a19..8704a9ba 100644 --- a/examples/stm32f4/.cargo/config.toml +++ b/examples/stm32f4/.cargo/config.toml @@ -3,8 +3,7 @@ build-std = ["core"] [target.'cfg(all(target_arch = "arm", target_os = "none"))'] # replace STM32F429ZITx with your chip as listed in `probe-run --list-chips` -#runner = "probe-run --chip STM32F429ZITx" -runner = "probe-run --chip STM32F401RE" +runner = "probe-run --chip STM32F429ZITx" rustflags = [ # LLD (shipped with the Rust toolchain) is used as the default linker diff --git a/examples/stm32f4/src/bin/spi_dma.rs b/examples/stm32f4/src/bin/spi_dma.rs index db6b69c8..10a419fd 100644 --- a/examples/stm32f4/src/bin/spi_dma.rs +++ b/examples/stm32f4/src/bin/spi_dma.rs @@ -28,8 +28,8 @@ async fn main_task() { let mut spi = Spi::new( p.SPI1, p.PB3, - p.PA7, - p.PA6, + p.PB5, + p.PB4, p.DMA2_CH3, p.DMA2_CH2, Hertz(1_000_000),