Skip to main content
Explorer
May 19, 2025
Solved

STM32F205RG USB High Speed and I2C RTC Problem

  • May 19, 2025
  • 1 reply
  • 558 views

Greetings,

In my application i have initialized STM32F205RG with USB High Speed Host for detecting USB Key board and I2C2 for communicating with DS3231 RTC Module. RTC module works prefectly when i don't initialize USB HS peripheral, but when both initialized in the project then I2C2 always sends me HAL_BUSY state.

Is there any solution or work around for this problem ? 

I am using cube mx for code generation and initialiazation. 

Thanks.

 

    This topic has been closed for replies.
    Best answer by Nimit Vachhani

    Greetings mbarg.1 ..

    Thanks for the advice. Actually i am sorry to bother here on forum as just now i have received new module for DS3231 and it is working fine. May be the rtc module might have been damaged. 

    I don't like modules but as i am developing proto type i rely on module to expediate the coding process. Things are now working normal as it should by replacing it with new module.

    Thanks again.

    1 reply

    Graduate
    May 19, 2025

    I do use the same configuration with STM32F7 and with 3 I2c devices (DS3231 + PCA9555D) but I do not see any problem.

    Did you check that buffers areas do not overlap or overflow?

    HAL_BUSY is device specific - on I2C or USB?

    Explorer
    May 19, 2025

    HAL_BUSY  is for I2C... Can please elaborate more on buffer areas...

    Graduate
    May 19, 2025

    I2C and USB both save data in buffers - buffers can overflow and corrupt areas with settings - same if overlap