cancel
Showing results for 
Search instead for 
Did you mean: 

STMF723 I2C slave sequential receive

Kannan1
Associate III

I am working in STM32F723 in slave mode,

I need to receive 2 bytes from master, which is the register address to read from slave.

I used HAL_I2C_Slave_Sequential_Receive_IT function with buffer option FIRST_FRAME.

I called HAL_I2C_EnableListen_IT before calling sequential receive for enabling listen mode.

The problem here i found is this only generates a address match interrupt, but does not generating RXNE interrupt for reading bytes.

When i probed the clock , after receiving slaveaddress the clock becomes low and does not overcome.

Why this happens? Is Iam doing wrong?

But I have received the data from master with HAL_I2C_Slave_Receive_IT function.

Is anything more i need to do for recieving data with sequential_receive call?

1 REPLY 1
Kannan1
Associate III

I have mistaken while implementing address callback function in my user code. HAL was calling the weak callback function.

My problem was solved when i have corrected it.

Thank You