Hi Federico Fiorini,
Thank you for your updated information.
You said: "I'm asking this because I doubt it is a software problem, because I tried to follow example codes and I'm using the LPCOpen library code, so it should perfectly work."
LPCopen code works OK, then your another software can't work, is it right?
So, very good.
Do you have the Logic Analyzer Tool on your side, please test the I2C bus wave on both the lpcopen code and your own software, compare the I2C bus wave, then check your code, which point have the difference. This will help you find the root problem quickly.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------