LPSPI rxData == txData OK?

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

LPSPI rxData == txData OK?

ソリューションへジャンプ
1,251件の閲覧回数
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 解決策
1,174件の閲覧回数
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 返答(返信)
1,229件の閲覧回数
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 件の賞賛
返信
1,205件の閲覧回数
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 件の賞賛
返信
1,175件の閲覧回数
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 件の賞賛
返信
1,147件の閲覧回数
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 件の賞賛
返信