2024-12-24 09:24 PM - last edited on 2024-12-27 12:59 AM by Imen.D
(translated)
I encountered the exact same problem. I2C and SPI can be used independently. When used together, SPI cannot communicate, but I2C works fine.
After commenting out the I2C initialization, SPI can be used normally. The chip model is STM32F103CBT6.
My current product doesn't work properly~, it seems I need to change the pinout.
EDIT by ST Moderator: Post translated in English and moved to a new thread with right labels, instead of re-posting it in an old thread that doesn't have the same problem.
2024-12-27 12:50 AM
Hello @WangXu
Check if you have the condition described as a limitation in STM32F101x4/6, STM32F102x4/6, STM32F103x4/6 device errata: "I2C1 with SPI1 remapped and used in master mode".
The workaround provided there is: