Code stop working suddenly after reorder code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code stop working suddenly after reorder code

1,084 Views
leandro_f_rocco
Contributor III

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?

Thank you.

Labels (1)
0 Kudos
Reply
2 Replies

985 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hello leandro_f_rocco@hotmail.com

I´m glad to help you!

Could you let me know the following information:

  •  MCU.
  • SDK. If that is the case, are you checking any SDK example as a reference?
  • IDE.
  • Any other detail about your drivers.

Best regards, Diego.

0 Kudos
Reply

985 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi leandro_f_rocco@hotmail.com

Were you able to check my previous inquiries? 

Best regards, Diego

0 Kudos
Reply