Hi Samuel,
You can attached your project directly.
If it is confidential to you, you can delete all the other important code, just leave the I2C initialize and communication code.
I will test it on my side.
Now please test these points on your side:
1. bus clock frequent checking
Please configure PTC3 as the CLKOUT, and output the bus clock, test it in debug and none debug mode independently.
Whether the bus frequency is changed.
2. Add some delay after power on in the main function, and before the I2C configuration.
For example, add 1 second delay, then test it again.
3. electrical reset, do you mean POR?
Try use the pin reset in PTA4, don't use POR reset again.
Waiting for your reply!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------