Hello @simon98,
Thank you for using the Model-Based Design Toolbox for S32K3. First, a few notes about the S32CT configuration. I noticed that the Direction of the LPI2C0_SCL pin is set to Output in your configuration project; both I2C pins should have the Direction set to Input/Output, as you can see in the image below.

Then, for configuring I2cChannel_0, you can try the settings in the image below. The parameters are modified to obtain the I2c Baud Rate from the default configuration projects for the hardware parts that have the I2C component configured.

Please note that the signal lines used for I2C transmission require external 2k Ohm pull-up resistors between SDA and VDD and SCL and VDD. As I noticed in the SCH-54870 schematic of the XS32K3X8EVB-Q289, the pins configured in your mex file (PTF20 and PTF21) are not connected to a VDD via resistors, so you need external resistors for I2C communication to work. Alternatively, you can use the PTC6 and PTC7 pins which can be routed to LPI2C1_SDA and LPI2C1_SCL and are connected to VDD_IO via 10k Ohm pull-up resistors, as you can see in the image below. To be able to use them, you just need to configure the LPI2C1 pins and select the LPI2C_1 peripheral in the I2cChannel_0 channel. If you have a hardware board with a different schematic version, please check if these observations still apply to your case.

Regarding the application you sent, I have a few questions. What device are you trying to interface with? I noticed that the Slave address given as an input for the I2c_AsyncTransmit block in your model is set to 50. Is this the address of your slave device?
To give you a little background, here are some details about the MBDT implementation of the I2C component. The request structure required in the I2c_SyncTransmit and I2c_AsyncTransmit functions has the following parameters:
- SlaveAddress: Slave Device Address.
- BitsSlaveAddressSize: This is true when the slave address is 10 bits, when false the address is on 7 bits.
- HighSpeedMode: If this is true the data will be sent with high speed enabled (if hardware support exists).
- ExpectNack: When this is true, NACK will be ignored during the address cycle.
- RepeatedStart: When this is true, a repeated start (Sr) will be issued on the bus instead of a STOP at the end of the transfer.
- BufferSize: The number of bytes for reading or writing.
- DataDirection: Direction of the data, can be either Send or Receive.
- DataBuffer: Buffer to store or to transmit Serial data.
The Data Direction parameter can be chosen from the drop-down menu inside the block mask. The 10 Bits Slave Address Size and High Speed Mode parameters can be selected from the checkboxes inside the block mask.
The Slave Address, Repeated Start, Expect Nack, Data Tx (for the Send direction), Buffer Size (for the Receive direction) parameters are expected as inputs to the block, while Data Rx (for the Receive direction) will be an output to the block.
Let me know if these suggestions work or if you need further help.
Best regards,
Cristina