@chronic788 ,
I guess, you called I2c_Init with “I2C4” portname.
i2c = I2c_Init(L"I2C4");
I2c_SetConfigInt for ioScl, ioSda parameters must be called before I2c_Open function. Please refer Compatible I2C Configurations section in Toradex_CE_Libraries.chm documentation for more information.
Let us know if it doesn’t solve the issue.