2025-05-18 9:08 PM
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.
Solved! Go to Solution.
2025-05-19 10:15 PM
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.
2025-05-18 10:00 PM
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?
2025-05-18 11:13 PM
HAL_BUSY is for I2C... Can please elaborate more on buffer areas...
2025-05-19 4:06 AM
I2C and USB both save data in buffers - buffers can overflow and corrupt areas with settings - same if overlap
2025-05-19 10:15 PM
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.
2025-05-19 10:28 PM
One more suggestion: when dealing with interfaces, have always one oscilloscope ready - saves time and troubles ..
mike
2025-05-24 7:16 PM
Hey,
Thanks. I do have the scope but i was lazy to take it out. Next time I will do it without fail. :)