Hi @vwsncr ,
Thanks for your interest in NXP MIMXRT series!
I am glad to provide service for you.
Here is a detailed documentation that you can refer to.It helps you to understand this feature. Also, please refer to the code in the SDK that enables Tx and Rx SCL clock stretching in the official SDK.
We don't need to send ACK/NACK manually, so enable clock stretching except ACKSTALL.
When ACKSTALL is enabled, there is no need to set either RX SCL Stall
(SCFGR1[RXSTALL]) or Address SCL Stall (SCFGR1[ADRSTALL]).
void LPI2C_SlaveInit(: