Associate III
August 26, 2019
Question
Problems with using SPI and I2C together
- August 26, 2019
- 3 replies
- 1156 views
Hi,
i am using a NUCLEO STM32L412 board and i want to use SPI and I2C together.
Every bus works for itself - this is OK.
But when i measure the signals, i get SPI clock signal on SDA and vice versa the SDA Signal on SPI SCK. I initialized with CubeMx.
Here my connections:
PA12 - SPI1 MOSI
PA11 - SPI MISO
PA5 - SPI SCK
PB6 - I2C SCL
PB6 - I2C SCL
Attached a scope image (SPI CLK = channel 2)
