2021-12-29 12:53 AM
2021-12-30 06:00 AM
The problem is solved
The 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
2021-12-29 05:42 AM
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
2021-12-29 06:50 AM
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.
2021-12-29 05:29 PM
This is the cubeMX configuration
Code generated by cubeMX
This is using NUCLEO_STM32F412RG development board, using IIC and M24C64 communication, this waveform is ok
This is using NUCLEO_STM32G4 development board, using IIC and M24C64 communication, this waveform is abnormal
Please help analyze, is it the HAL library problem, or my problem, thank you very much for your help
2021-12-30 06:00 AM
The problem is solved
The 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