There is an error in the HAL_I2C_MspInit() function generated by CubeMX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-02 04:42 AM
I2C did not work, so I was looking for the cause, and found that there was a missing part in the HAL_I2C_MspInit() function of the stm32f1xx_hal_msp.c file automatically generated by CubeMX, unlike the previous version.
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
If I insert the above code, it works normally.
Below is the version information.
CubeMX V6.3.0
MCU Package STM32F1 Series V1.8.4
MCU STM32F103C6Tx
- Labels:
-
Bug-report
-
GPIO-EXTI
-
I2C
-
STM32CubeMX
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-02 07:02 AM
Hello,
could you please share the .ioc file ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-02 07:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-02 07:49 AM
Thank you,
Ticket entered.
Internal ticket number: 116845 (PS: This is an internal tracking number and is not accessible or usable by customers)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-02 02:03 PM
Is it required to specify the speed of alternate function pins for modern STM32s too, or only for F1?