LPSPI rxData == txData OK?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPSPI rxData == txData OK?

Jump to solution
1,117 Views
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?

Tags (1)
0 Kudos
Reply
1 Solution
1,040 Views
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.

 

View solution in original post

0 Kudos
Reply
4 Replies
1,095 Views
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 Kudos
Reply
1,071 Views
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 Kudos
Reply
1,041 Views
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 Kudos
Reply
1,013 Views
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 Kudos
Reply