Hello Jorge, The I2C bus STOP condition is exactly the solution that I am looking for.
I can confirm that when I2C interrupt are enabled, the STOP condition is detected properly.
I am also able to detect all other interrupts like START, TCF (Transfer Complete), ...
But, when the DMA interrupt is activated with the mode `Cycle Steal`
the only interrupt generated is when the DMA channel counter reach zero.
All other I2C interrupts including the STOP condition are not generated.
My main suspect is the mode "Cycle Steal".
It looks like this mode can be used only when you know exactly the length (number of bytes) to be transmitted.
Otherwise it's not a good solution when you don't know in advance how many bytes are to be transmitted.
Please let me know if you have any suggestion.
thanks,
Martin