cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_I2C_EnableListen_IT() is not enabling Address matched interruption

Tiboww
Associate III

Hello

I am trying to implement I²C slave on a STM32U385RGTxQ in non-blocking mode, on I2C2.
To match I²C standard I tried to use the Address macthed interruption but the interruption is never trigged. I used the function HAL_I2C_EnableListen_IT(&hi2c2) to enabled it;

My issue is, I don't reach neither the I2C2_EV_IRQHandler(void), the I2C2_ER_IRQHandler(void) or the HAL_I2C_AddrCallback() when sending the slave address. 

Please found attached my project. And bellow some pictures of my I2C2 init, an oscilloscope capture and my I2C2 register when I am in debugger : 

Tiboww_0-1776428073420.png Tiboww_1-1776428083198.png 

Tiboww_2-1776428150417.png 

Tiboww_3-1776428199946.png

 

Best Regards

Thibaud HABRAND

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Tiboww
Associate III

I had an hardware issue on my SCL pin sorry about this useless post

View solution in original post

1 REPLY 1
Tiboww
Associate III

I had an hardware issue on my SCL pin sorry about this useless post