Hello,
To understand your case, you are trying to configure an I2C [master Flexcomm2] and another I2C [slave Flexcomm4], that I understood, tell me if I'm right, to give you more information. I will wait for your comments.
All my future recommendations will be based on the IDE MCUXpresso.
Best regards,
Pavel