Re: SPI and I2C Pin Conflict Issue on STM32F103CBT6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-24 9: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.
Solved! Go to Solution.
- Labels:
-
I2C
-
SPI
-
STM32F1 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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:
- Do not use SPI1 remapped in master mode and I2C1 together.
- When using SPI1 remapped, the I2C1 clock must be disabled.
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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:
- Do not use SPI1 remapped in master mode and I2C1 together.
- When using SPI1 remapped, the I2C1 clock must be disabled.
Thanks
Imen
