facing problem while executing the "flexio_spi_master_edma_lpspi_slave" examp

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

facing problem while executing the "flexio_spi_master_edma_lpspi_slave" examp

3,992 Views
SAKK
Contributor I

Hi All,

I started working on SPI drivers and its SDK driver Example codes (MIMRTX1170) "flexio_spi_master_edma_lpspi_slave.c"

did the connection as per the "Readme.txt" file 

To make the example work, connections needed to be as follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SLAVE connect to MASTER
Pin Name Board Location Pin Name Board Location
SOUT J10-10 SIN J26-6
SIN J10-8 SOUT J26-4
SCK J10-12 SCK J26-2
PCS0 J10-6 PCS0 J26-8
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

not sure on this 

Board settings
==============
Remove 0Ω resistor to R406,R408,R404.

current execution is stopped here. 

/* Wait slave received all data. */
while (!(isSlaveTransferCompleted && isMasterTransferCompleted))

attaching snap for the same.

any other board setup is required ?

later I tried different example SPI Driver example ("flexio_spi_int_lpspi_transfer_master") it worked !

SAKK_0-1621270720394.png

 some issue with EDMA example code 

Thanks

Sathish 

0 Kudos
Reply
2 Replies

3,976 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1) any other board setup is required?
-- Yes, another board is the slave and it runs the flexio_spi_int_lpspi_transfer_slave demo code.
Hope this is clear.
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

3,956 Views
SAKK
Contributor I

@jeremyzhou i understand that we need two boards for b2b examples 

SAKK_0-1621495555126.png

 

0 Kudos
Reply