Semihosting interfering with LPI2C driver?

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

Semihosting interfering with LPI2C driver?

1,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 回复数

1,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 项奖励
回复

1,647 次查看
ErichStyger
Specialist I

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 项奖励
回复

1,641 次查看
euginjeyapradee
Contributor II

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

 

Regards,
Eugin

0 项奖励
回复

1,776 次查看
ErichStyger
Specialist I

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

0 项奖励
回复