Semihosting interfering with LPI2C driver?

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

Semihosting interfering with LPI2C driver?

790件の閲覧回数
jackking
Senior Contributor I

I have just uplifted my project to use the latest MCUxpresso SDK version (2.13 for i.MXRT1060).  I was previously using SDK 2.08

It seems that now, quite frequently, when sending debug output via semihosting, the I2C driver will get hung up in the I2C ISR service routines.  This did not happen in the previous version I was using, but there are quite a few differences between the SDK versions, so I'm not sure where to start looking for the cause.

Has anyone seen this issue?

thanks

0 件の賞賛
4 返答(返信)

653件の閲覧回数
euginjeyapradee
Contributor II

I have also been facing the same issue here. Control gets stuck in I2C handler when i try to print messages to the console. Were you able to find out the reason or have you been able to resolve the issue

Thanks

Eugin

0 件の賞賛

647件の閲覧回数
ErichStyger
Senior Contributor V

keep in mind that using semihosting is *very* intrusive. If you are doing this during an I2C transfer, I'm not surprised that I2C won't work as expected.

And depending on how you do it, you will easily have a stack overflow too (so add plenty of stack space to your application).

If you really want to use semihosting, I recommend to do use it the 'direct' way, see https://mcuoneclipse.com/2023/03/09/using-semihosting-the-direct-way/

I hope this helps,

Erich

0 件の賞賛

641件の閲覧回数
euginjeyapradee
Contributor II

That helps. Thank you for your quick response ErichStyger. I appreciate it.

 

Regards,
Eugin

0 件の賞賛

776件の閲覧回数
ErichStyger
Senior Contributor V

I have not seen that (currently not using RT, but other devices). It might be related to the debug probe you are using?

0 件の賞賛