board:sambaSD
system:linux 3.0.35
I want to test my spi interface and ensure my spi interface can send and receive data. Can you tell me how to test this?
Solved! Go to Solution.
 
					
				
		
 igorpadykov
		
			igorpadykov
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		please read Chapter 21
Enhanced Configurable SPI (ECSPI)
i.MX 6Dual/6Quad Applications Processor Reference Manual.
Yes one can connect MISO to MOSI.
~igor
dear sir:
whether I need to connect MISO to MOSI for test?
thanks
dear sir:
I don't know how to set loopback, can you guide me or give me some documents?
thanks
 
					
				
		
 igorpadykov
		
			igorpadykov
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		please read Chapter 21
Enhanced Configurable SPI (ECSPI)
i.MX 6Dual/6Quad Applications Processor Reference Manual.
Yes one can connect MISO to MOSI.
~igor
hi sir:
thanks for your help.
can you tell me how to connect hardware?
 
					
				
		
 igorpadykov
		
			igorpadykov
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi mingming
I think you can set loopback mode:
ECSPIx_TESTREG bit LBC
~igor
 
					
				
		
 igorpadykov
		
			igorpadykov
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi mingming
one can look at imx-test-x.x.x package (included in ltib), attached
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
