Skip to main content
Associate II
May 11, 2026
Solved

The slave device of IIC is unable to raise the SCL response.

  • May 11, 2026
  • 1 reply
  • 270 views

Here are the logs and waveforms. The slave device of IIC is unable to raise the SCL response. The data cannot be sent out either. The code is provided in the attachment.

HAL_I2C_AddrCallback: 开始接收数据
接收到字节[0]: 0x40
接收到字节[1]: 0x03
接收到字节[2]: 0x22
接收到字节[3]: 0xFE
接收到字节[4]: 0xBE
HAL_I2C_ListenCpltCallback: 开始接收数据
接收到字节[0]: 0x41
HAL_I2C_ListenCpltCallback: 开始发送数据
发送字节[0]: 0x05
发送字节[1]: 0x62
发送字节[2]: 0xFE
发送字节[3]: 0xBE
发送字节[4]: 0x30
发送字节[5]: 0x31

AngusHZ_0-1778486869444.pngAngusHZ_1-1778486886781.pngAngusHZ_2-1778486902701.png

AngusHZ_3-1778486916774.png

 



Best answer by AngusHZ

I'm aware of all of this. The cause of the problem lies in the usage issue of the HAL_I2C_Slave_Seq_Receive_IT interface.
The received byte count must be the same as the number sent by the host.
Adding or subtracting just one byte will cause the system to enter the ER interrupt.

1 reply

mƎALLEm
ST Technical Moderator
May 11, 2026

Hello @AngusHZ and welcome to the ST community,

As technical admin in this community, let me ask you to provide more details about your project:

- What STM32 part number are you using?

- What I2C slave are you connecting to the STM32?

- Your schematic

Please read How to write your question to maximize your chances to find a solution

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
AngusHZAuthor
Associate II
May 12, 2026

STM32H743VIT6 is slave,I'm use STM32H743VIT6

mƎALLEm
ST Technical Moderator
May 12, 2026

You still didn't provide all the needed information:

mALLEm_0-1778574145215.png

For the second question what is the master?

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.