Code stop working suddenly after reorder code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Code stop working suddenly after reorder code

1,020 次查看
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.

标签 (1)
0 项奖励
回复
2 回复数

921 次查看
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 项奖励
回复

921 次查看
diego_charles
NXP TechSupport
NXP TechSupport

Hi leandro_f_rocco@hotmail.com

Were you able to check my previous inquiries? 

Best regards, Diego

0 项奖励
回复