Code stop working suddenly after reorder code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Code stop working suddenly after reorder code

1,083件の閲覧回数
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 返答(返信)

984件の閲覧回数
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 件の賞賛
返信

984件の閲覧回数
diego_charles
NXP TechSupport
NXP TechSupport

Hi leandro_f_rocco@hotmail.com

Were you able to check my previous inquiries? 

Best regards, Diego

0 件の賞賛
返信