[소개]
[문제 상황]
함수를 따라가보면, 해당 부분에서 HAL_BUSY를 리턴합니다.
[해결]
__HAL_RCC_I2C2_FORCE_RESET(); HAL_Delay(200); __HAL_RCC_I2C2_RELEASE_RESET();
[소감]
[관련 글]
https://stackoverflow.com/questions/52947758/stm32-i2c-write-failure
https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=just4u78&logNo=221286198232
https://electronics.stackexchange.com/questions/272427/stm32-busy-flag-is-set-after-i2c-initialization
https://community.st.com/s/question/0D53W000007Wj9wSAC/hali2c-hangs-when-it-enters-i2cwaitonflaguntiltimeout-function