Skip to main content
aston
Associate
December 29, 2021
Solved

stm32G474RET6 uses HAL IIC and M24C64 communication, the communication is abnormal(solved)

  • December 29, 2021
  • 4 replies
  • 2115 views

0693W00000Hq2MfQAJ.png

This topic has been closed for replies.
Best answer by aston

​The problem is solved

0693W00000HqBDIQA3.pngThe macro definition is wrong. After correction, the problem is solved

Thank you TDK

Thanks to imen Dahmen (st)

Thank Alex Xu (st) for helping me find the problem

4 replies

ST Technical Moderator
December 29, 2021

Hello @扬 谢​ and welcome to the Community :)

Please try to write in English if you want to make sure you can get an answer, because most of the people on this community can speak English but not Chinois.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
TDK
December 29, 2021

Google translate: stm32G474RET6 uses HAL IIC and M24C64 communication, the communication is abnormal

Still not enough detail. Looks like the SCL is held low. Show the full code used to produce this.

"If you feel a post has answered your question, please click ""Accept as Solution""."
aston
astonAuthor
Associate
December 30, 2021

This is the cubeMX configuration

0693W00000Hq7tAQAR.png

Code generated by cubeMX0693W00000Hq7wOQAR.png

This is using NUCLEO_STM32F412RG development board, using IIC and M24C64 communication, this waveform is ok

0693W00000Hq7x2QAB.pngThis is using NUCLEO_STM32G4 development board, using IIC and M24C64 communication, this waveform is abnormal

0693W00000Hq7xgQAB.png 

Please help analyze, is it the HAL library problem, or my problem, thank you very much for your help​

aston
astonAuthorBest answer
Associate
December 30, 2021

​The problem is solved

0693W00000HqBDIQA3.pngThe macro definition is wrong. After correction, the problem is solved

Thank you TDK

Thanks to imen Dahmen (st)

Thank Alex Xu (st) for helping me find the problem