LPSPI in interrupt & eDMA mode not working in RT1170-EVK.

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

LPSPI in interrupt & eDMA mode not working in RT1170-EVK.

2,990 Views
krishnad
Contributor II

I have tried running the MCUXpresso LPSPI SDK examples and below are the results.

  1. Tried evkmimxrt1170_lpspi_interrupt_b2b_transfer_master_cm7 example using a single RT1170 board by interconnecting SOUT-SIN of LPSPI1 channel and it works fine.
  2. Tried evkmimxrt1170_lpspi_interrupt_b2b_transfer_master_cm7 example using two RT1170 boards by connecting as below using LPSPI1 channel and it doesn't work.
    LPSPI_master -- LPSPI_slave
    CLK -- CLK
    PCS -- PCS
    SOUT -- SIN
    SIN -- SOUT
    GND -- GND
  3. Tried evkmimxrt1170_lpspi_edma_b2b_transfer_master_cm7 example using single and two RT1170 boards and in both cases it did not work.
  4. The polling examples were not tried as it is not suitable for my requirement.

Can anybody help me by providing a working example of LPSPI in eDMA mode and Interrupt mode. Also do i need to make any hardware mods like placing/removing any resistors on board as suggested by readme.txt document of respective projects.

 

Regards,

-Krishna

0 Kudos
Reply
7 Replies

2,978 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Before answering your question, I'd like to know whether you have already followed the readme.txt to set up the hardware setting.
Board settings
==============
Remove 0Ω resistors R404,R406,R408.

SPI one board:
Transfer data from one board instance to another board's instance.
SPI1 pins are connected with SPI1 pins of another board
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INSTANCE1(LPSPI1) CONNECTS TO INSTANCE1(LPSPI1)
Pin Name Board Location Pin Name Board Location
SOUT J10 pin 8 SIN J10 pin 10
SIN J10 pin 10 SOUT J10 pin 8
SCK J10 pin 12 SCK J10 pin 12
PCS0 J10 pin 6 PCS0 J10 pin 6
GND J10 pin 14 GND J10 pin 14
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

2,970 Views
krishnad
Contributor II

Hi,

Regarding your question on removing resistors R404,R406,R408, R404 & R408 is DNP on RT1170 EVK and R406 is placed. No i haven't done any changes to the board. We don't want to perform any changes to the RT1170 EVK board.

Here are my questions straight:

  1. without removing R406, LPSPI1 won't work?
  2. Do i need to make any changes to RT1170 EVK board to use LPSPI6 with the same SDK examples?

I have additional information to share on what combinations of SDK LPSPI examples works or does not work:

LPSPI1                   Master                   Slave

-------------------------------------------------------------------------
works
                                Polling                    Polling
                                Polling                    Interrupt
                                Polling                    eDMA
does not work
                                Interrupt                 Interrupt
                                eDMA                    eDMA

0 Kudos
Reply

2,951 Views
krishnad
Contributor II

Hi,

Any information or updates on this. Thanks.

Regards,

-Krishna

0 Kudos
Reply

2,942 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1) Without removing R406, LPSPI1 won't work?
-- From the point of view of the demo function view, the answer is yes.
2) Do I need to make any changes to RT1170 EVK board to use LPSPI6 with the same SDK examples?
-- Yes.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

2,935 Views
krishnad
Contributor II

Hi,

 

Would you mind telling what changes are needed on RT1170 EVK board to use LPSPI6 with the same LPSPI SDK examples.

 

Thanks,

Krishna

0 Kudos
Reply

2,705 Views
Loic_B
Contributor IV

Hello,

Is your lpspi6 working with edma on evk board ?

I have the same problem than you.

thanks

0 Kudos
Reply

2,910 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
To provide the fastest possible support, I'd highly recommend you refer to the schematic to modify the hardware of the MIMXRT1170 EVK to use the LPSPI6.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply