SPI Slave Configuration in IMXRT1176

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

SPI Slave Configuration in IMXRT1176

Jump to solution
937 Views
KAVIN_M
Contributor II

I'm trying to configure IMXRT1170 as slave for to master which is different MCU (not nxp product) of M4 core.

What is basic step to do to config the as SPI slave?
Kindly do needful.

 

0 Kudos
Reply
1 Solution
924 Views
mayliu1
NXP Employee
NXP Employee

Hi @KAVIN_M ,

Thank you so much for your interest in our products and for using our community.

I suggest you can refer to NXP SDK demo.

There are several drive ways, It depend on your needs.

mayliu1_1-1734428435202.png

For example, You can refer to SDK demo "evkbmimxrt1170_lpspi_edma_b2b_transfer_slave_cm7",  If you want set SPI pin ,you can use Config Tool.  

mayliu1_2-1734428800646.png

Finally, please double check that the Clock polarity and Clock phase settings of the SPI slave device are consistent with those of the master SPI.

mayliu1_3-1734429268626.png

Wish it helps you.
If you still have question about it, please kindly let me know.

 

BR

mayliu

View solution in original post

0 Kudos
Reply
6 Replies
925 Views
mayliu1
NXP Employee
NXP Employee

Hi @KAVIN_M ,

Thank you so much for your interest in our products and for using our community.

I suggest you can refer to NXP SDK demo.

There are several drive ways, It depend on your needs.

mayliu1_1-1734428435202.png

For example, You can refer to SDK demo "evkbmimxrt1170_lpspi_edma_b2b_transfer_slave_cm7",  If you want set SPI pin ,you can use Config Tool.  

mayliu1_2-1734428800646.png

Finally, please double check that the Clock polarity and Clock phase settings of the SPI slave device are consistent with those of the master SPI.

mayliu1_3-1734429268626.png

Wish it helps you.
If you still have question about it, please kindly let me know.

 

BR

mayliu

0 Kudos
Reply
847 Views
KAVIN_M
Contributor II
Hi mayliu

Thanks for your response, iMXRT1176 as SPI slave is successfully established full duplex slave communication with the master.

Now is it possible to config any MCU as master with respect to this slave clock (PHA & POL) and other parameters.
Tags (1)
0 Kudos
Reply
835 Views
mayliu1
NXP Employee
NXP Employee

Hi @KAVIN_M 

 

I'm glad to hear you that  iMXRT1176 as SPI slave works successful.

I'm sorry, I don't quite understand your question. Could you please explain it in more detail?

 

BR

mayliu

0 Kudos
Reply
833 Views
KAVIN_M
Contributor II
Hi @mayliu1

Is it now possible to configure any MCU as the master with respect to this slave (iMXRT1170) configurations?

Now, I'm changed the SPI master MCU, still using the same Slave Code & config. But the garbage value is only stored in the buffer.

What might be the problem?
Master is configured as same as it is.
0 Kudos
Reply
830 Views
mayliu1
NXP Employee
NXP Employee

Hi @KAVIN_M 

 

Thanks for your update information.

I suggest you use an oscilloscope to check the SPI signals of the MCU which as the SPI master( SCK, PCS, SDI, and SDO). Please check whether the signals are correct as SPI master sends.

Please pay attention to the following points.

1: Double check the SPI clock speed is within the operational limits for  both SPI master and SPI  slave. 

2: Confirm SPI mode ,especially CPOL and CPHA settings. PCS Chip select setting.

3: Double check  hardware connections( SCK, PCS, SDI, and SDO)  between the master and slave

Wish it helps you.
If you still have question about it,  You can create a new case, I will do my best to support you.

BR

mayliu

0 Kudos
Reply
654 Views
KAVIN_M
Contributor II
Hi @mayliu1,

We tried the above three steps those where correctly mapped.
But still not able to establish the SPI communication between ESP32 (M) to iMXRT1170 (S)?

One more doubt operating voltage of the iMXRT1170 is 3.3V only right for peripheral?
0 Kudos
Reply