I am making a program where I use modules I2C1 and UART4.
I have the following problem: both modules work properly the first time I compile. Then, without modifying any line of code, I made a change of place of a function inside the main file and suddenly the I2C1 module stopped working, it gets stuck waiting for the data transmission to finish.
After several tests, I got the module to work again, but I don't know exactly what I did.
Later, I moved another function to reorder the code and the I2C1 module stopped working again.
I mean, I didn't make any code changes other than relocate a function within the same scripts. How can this be possible?
I´m glad to help you!
Could you let me know the following information:
Best regards, Diego.