Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI3 does not work on stm32f405 #691

Open
hacknus opened this issue Nov 7, 2023 · 0 comments
Open

SPI3 does not work on stm32f405 #691

hacknus opened this issue Nov 7, 2023 · 0 comments

Comments

@hacknus
Copy link
Contributor

hacknus commented Nov 7, 2023

I'm trying to use the SPI3 bus (alongside SPI1 and SPI2, which both work fine), however the clock does not seem to be activated.

[dependencies.stm32f4xx-hal]
version = "0.17"
# git = "https://github.com/stm32-rs/stm32f4xx-hal"
features = ["rt", "stm32f405", "usb_fs","spi3"] # replace the model of your microcontroller here
// initialize SPI3 for FLASH MEMORY
let sclk_3 = gpioc.pc10.into_alternate().speed(Speed::VeryHigh);
let sdo_3 = gpioc.pc11.into_alternate().speed(Speed::VeryHigh);
let sdi_3 = gpioc.pc12.into_alternate().speed(Speed::VeryHigh);

let spi3 = dp
    .SPI3
    .spi((sclk_3, sdo_3, sdi_3), MODE_0, 10.kHz(), &clocks);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant