Skip to main content
Explorer
May 8, 2024
Question

I2C

  • May 8, 2024
  • 0 replies
  • 542 views

Hi,

now I'm implementing i2c with 1 master(U575ZI-Q) and 3 slave(L432KC) boards.

 

master transmit dataBuf to slave 

HAL_I2C_Master_Transmit_IT(&hi2c1, addr<<1, dataBuf, sizeof(dataBuf));

 

and Slave receive it.

HAL_I2C_Slave_Receive_IT(&hi2c1, dataBuf, sizeof(dataBuf));

 

I already checked slave address and dataBuf, no problem.

also My code worked well before I change some setting :(

 


 

The problem is..

eunni_1-1715132274229.png

Master is ready to transmit(write) to slave 0x08, but it doesn't transmit the dataBuf contents.

SCL stay LOW and SDA stay HIGH...

 

IDK what's the problem.

thank you

    This topic has been closed for replies.