Hello ,
I'm trying to test I2C master on S32K324 but i'ts not working.
Actually I have no I2C slave connected to I2C master but I don't see any transition on PTD13 (LPI2C_SDA) or PTD14 (LPI2C_SCL), the two pins are ever HIGH.
I expect to see start condition like attached file.
Attached there is the project.
Regards, Francesco.
Hello Francesco,
I haven't tested the code, but I see that you did not enable the LPI2C interrupt.
Add IntCtrl_Ip driver with LPI2C0_Master_Slave_IRQHandler.
And initialize the driver in the code.
Regards,
Daniel
Hi @francescovico,
When CM7_1 is halted, the MCU enters debug mode.
To ensure LPI2C continues functioning, either set the DBGEN bit in LPI2C_MCR to allow operation during debugging, or Keep CM7_1 running.
BR, Daniel
HI @francescovico,
Enable it after the Init function.
Otherwise, the Init function will clear the bit.
Regards,
Daniel