IMXRT105x LPI2C STOP generated when using kLPI2C_TransferNoStopFlag

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

IMXRT105x LPI2C STOP generated when using kLPI2C_TransferNoStopFlag

跳至解决方案
2,081 次查看
gavin5342
Contributor III

I want to generate a write (for a command) without STOP followed by a read with a repeated START.

When I use LPI2C_RTOS_Transfer to send a transfer with kLPI2C_TransferNoStopFlag set, I see the STOP condition is generated on the I2C bus as though kLPI2C_TransferDefaultFlag were set.

Has anyone else seen this and/or know how to fix?

A workaround would be to make the command subaddress, but I would need to ignore the NAK that the slave sends when it has received the command.

标签 (1)
0 项奖励
回复
1 解答
2,045 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @gavin5342,

I2C timings often will be affected by debug halts, which is why the LPI2C module features a debug mode, described on Section "46.3.4 Debug mode" of the Reference Manual. You could try implementing this feature for further debugging.

BR,
Edwin.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,056 次查看
gavin5342
Contributor III

There seems to be a timeout that I am missing as the transactons work as I expect if I don't insert a breakpoint in between.

0 项奖励
回复
2,046 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @gavin5342,

I2C timings often will be affected by debug halts, which is why the LPI2C module features a debug mode, described on Section "46.3.4 Debug mode" of the Reference Manual. You could try implementing this feature for further debugging.

BR,
Edwin.

0 项奖励
回复