STM32F103 holding I2C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-13 7:36 AM
I am trying to use the F103 as a I2C master but it is holding the I2C pins low, there is nothing else on the bus 5k1 pullups, when I hold the device in reset the lines are 5V.
Because the lines are low, SB is never being set, so the first while statement of the transmit function is blocking.
Any suggestions as to what could be causing this? I have no ideas left.
/* USER CODE BEGIN */
//----------------------------------------------------------------------------------------------------
/* USER CODE END 2*/
- Labels:
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-15 11:13 AM
Hello @Ryan-SmartIR ,
Have a look at the Errata sheet related to the STM32F103 devices and check if you have the same conditions as described in the I2C limitations.
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-21 5:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-21 5:36 AM
Also note, from my original post, the while loop conditions are checking the I2C2 registers instead of the I2C1 registers so that would never work. I did fix this after posting and it still didn't work.
