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
Hi,
I am trying to use SPI3 on STM32F107 MCU, but I can not due to this error:
error[E0271]: type mismatch resolving `<Spi1Remap as stm32f1xx_hal::spi::sealed::Remap>::Periph == stm32f1xx_hal::pac::SPI3`
--> src/main.rs:128:19
|
128 | let spi = stm32f1xx_hal::spi::Spi::spi3(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `stm32f1xx_hal::pac::SPI3`, found struct `stm32f1xx_hal::pac::SPI1`
|
= note: required by `Spi::<stm32f1xx_hal::pac::SPI3, REMAP, PINS, u8>::spi3`
I think the compiler forces me to use remaped SPI1 instead of SPI3. In my case I can do that, but what if I want to use SPI1 and SPI3 at the same time?
Hi,
I am trying to use SPI3 on STM32F107 MCU, but I can not due to this error:
I think the compiler forces me to use remaped SPI1 instead of SPI3. In my case I can do that, but what if I want to use SPI1 and SPI3 at the same time?
Code snippet that I use to initialize the SPI3:
The text was updated successfully, but these errors were encountered: