LPSPI rxData == txData OK?

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

LPSPI rxData == txData OK?

跳至解决方案
960 次查看
p_shep
Contributor IV

Assuming we don't care that the txData is overwritten, is it OK to set both addresses the same?

Is there any issue with the data getting corrupted?

标记 (1)
0 项奖励
回复
1 解答
883 次查看
Miguel04
NXP TechSupport
NXP TechSupport

Hi @p_shep 

In our examples from the SDK there are 2 variables [masterRxData and masterTxData], if my understanding is correct is that you are trying to recieve and transmit using the same variable, it should not be the reason you are loosing data since the protocol uses the register to recieve and transmit.

1. Are you developing your own driver or are you using the SDK?

2. Have you tried using 2 variables [recieve and transmit]?

3. How are you recieving and transmiting?

Best Regards, Miguel.

 

在原帖中查看解决方案

0 项奖励
回复
4 回复数
938 次查看
Miguel04
NXP TechSupport
NXP TechSupport

Hi @p_shep 

Could you be more specific about your question? Which addresses are you refering to?

Also can you please provide me the board you are using?

Best Regards, Miguel.

0 项奖励
回复
914 次查看
p_shep
Contributor IV

Address would be somewhere in D-TCM.

The board would be the IMXRT1064 EVK

I've been using it like this, but it looks like one or the other (out bound or inbound) data might be getting corrupted during transfer.

I would have thought that the tx data would be copied out of memory into the fifo, then on reception the rx data copied from the fifo into memory - so one, then the other - so would be ok.

That may not be the case!

0 项奖励
回复
884 次查看
Miguel04
NXP TechSupport
NXP TechSupport

Hi @p_shep 

In our examples from the SDK there are 2 variables [masterRxData and masterTxData], if my understanding is correct is that you are trying to recieve and transmit using the same variable, it should not be the reason you are loosing data since the protocol uses the register to recieve and transmit.

1. Are you developing your own driver or are you using the SDK?

2. Have you tried using 2 variables [recieve and transmit]?

3. How are you recieving and transmiting?

Best Regards, Miguel.

 

0 项奖励
回复
856 次查看
p_shep
Contributor IV

Hi,

Thanks for help, that's good to know, can eliminate that a possibility.

Yep, using the standard SDK driver (2.2.0)

0 项奖励
回复