2018-10-04 02:16 AM
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?
2018-10-04 08:46 PM
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