Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 217583

Forum Post: CCS/TMS570LS3137: SPI2 loopback test not working

$
0
0
Part Number: TMS570LS3137 Tool/software: Code Composer Studio I am testing SPI2 module with the digital loopback setting. In particular, I am using Halcogen 's APIs to configure SPI and the communication. For now, I am interested in using only SPI2 in master mode, having it send messages in loopback and read the generated messages. Yet, it always fails and nothing seems to be sent. This is the situation after running my spiInit() : In particular, I want it to be interrupt-driven. For now, the loopback is not set, but after calling spiEnableLoopback(spiREG2, Digital_Lbk); I get: DIn = 0x103 IoLpbkTstCtrl = 0xA00 From the technical reference, I expected to find the LOOPBACK bit in SPIGCR1 set, but by debugging I find out that GlbCtr1 maintained its value (0x01000003). To send data I use spiSendData() , with CS_HOLD = false WDEL = false DFSEL = SPI_FMT_0 CSNR = 0 To receive data I use spiGetData() , with CS_HOLD = false WDEL = false DFSEL = SPI_FMT_0 CSNR = 0 What is the issue here? Am I missing something? I thank you in advance. Jarrel

Viewing all articles
Browse latest Browse all 217583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>