cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F205RG USB High Speed and I2C RTC Problem

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

6 REPLIES 6
mbarg.1
Senior III

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?

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

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

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.

One more suggestion: when dealing with interfaces, have always one oscilloscope ready - saves time and troubles ..

mike

Hey,

Thanks. I do have the scope but i was lazy to take it out. Next time I will do it without fail. :)