All I2C master APIs return a status which can give you a hint what runs and what not.
Can you please post your complete project or a shortened version that shows the error so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Thank you bob for your reply.
I got the solution and it is working fine now.
Can you tell us a bit about the error? Might help some other users.