arjun.a
data2 push
4a33762
raw
history blame
3.49 kB
{
"ticketNumber" : "1013160",
"reporterName" : "gg yang",
"rankPoints" : "1005",
"resolutionStatus" : "",
"ticketName" : "TDA2SX: Tda2s SPI slave mode reception problem",
"rankName" : "Expert",
"replies" : "",
"views" : "",
"queryText" : "Part Number: TDA2SX Other Parts Discussed in Thread: TDA2 Hello, expert Tda2s is SPI slave mode. If the master sends a 1MHz clock and sends 140 bytes every 20ms, it will get stuck after receiving several times. If it sends 32 bytes every time, it will not get stuck. If it sends 32 bytes every 10ms, it will still receive several times of data and it will get stuck. dmesg1.txt 146 root 0:00 [kworker/0:1H]\r\n 148 root 0:00 cat /proc/kmsg\r\n 149 root 0:00 ps\r\nroot@dra7xx-evm:/app# \r\nroot@dra7xx-evm:/app# \r\nroot@dra7xx-evm:/app# \r\nroot@dra7xx-evm:/app# \r\nroot@dra7xx-evm:/app# ./spi_rev_tool_32 -D /dev/spidev1.0 -s 1000000 -b 8\r\n[ 36.808325] spidev spi1.0: setup mode 0, 8 bits/w, 48000000 Hz max --> 0\r\n[ 36.809212] spidev spi1.0: setup mode 0, 8 bits/w, 48000000 Hz max --> 0\r\n[ 36.810092] spidev spi1.0: setup mode 0, 8 bits/w, 1000000 Hz max --> 0\r\n<7>[ 36.808304] spidev spi1.0: setup: speed 48000000, sample leading edge, clk normal\r\n<4>[ 36.808325] spidev spi1.0: setup mode 0, 8 bits/w, 48000000 Hz max --> 0\r\n<7>[ 36.809182] spidev spi1.0: spi mode 0\r\n<7>[ 36.809198] spidev spi1.0: setup: speed 48000000, sample leading edge, clk normal\r\n<4>[ 36.809212] spidev spi1.0: setup mode 0, 8 bits/w, 48000000 Hz max --> 0\r\n<7>[ 36.810065] spidev spi1.0: 8 bits per word\r\n<7>[ 36.810079] spidev spi1.0: setup: speed 1000000, sample leading edge, clk normal\r\n<4>[ 36.810092] spidev spi1.0: setup mode 0, 8 bits/w, 1000000 Hz max --> 0\r\n<7>[ 36.810946] spidev spi1.0: xfer len 32 rx tx 8bits 0 usec 1000000Hz\r\n<7>[ 36.810973] spidev spi1.0: setup: speed 1000000, sample leading edge, clk normal\r\nRX | 4D 56 00 00 10 9A 00 00 | MV...?.\r\nRX | 01 01 00 00 00 00 00 00 | ........\r\nRX | 00 00 00 00 00 00 00 00 | ........\r\nRX | 00 00 00 00 00 00 00 00 | ........\r\nRX | 00 00 00 00 00 00 00 00 | ........\r\nRX | 00 00 00 00 00 00 00 00 | ........\r\nRX | 00 00 00 00 00 00 00 00 | ........\r\nRX | 00 00 00 00 00 00 00 00 | ........\r\n<7>[ 36.826262] spidev spi1.0: setup: speed 48000000, sample leading edge, clk normal\r\n<7>[ 36.826462] spidev spi1.0: xfer len 32 rx tx 8bits 0 usec 1000000Hz\r\n<7>[ 36.826487] spidev spi1.0: setup: speed 1000000, sample leading edge, clk normal\r\n<7>[ 36.827021] spidev spi1.0: setup: speed 48000000, sample leading edge, clk normal\r\n<7>[ 36.827126] spidev spi1.0: xfer len 32 rx tx 8bits 0 usec 1000000Hz\r\n<7>[ 36.827149] spidev spi1.0: setup: speed 1000000, sample leading edge, clk normal\r\n I add printing when I can't receive hand data, it's stuck in SPI_ transfer_ one_ message()---->master-transfer_ one(). How to find the problem? The problem of the master side has been ruled out, and the measurement SPI CLK CS is normal.",
"imageList" : null,
"partNumber" : "NA",
"allResponseList" : [ {
"contentId" : "",
"userName" : "Stanley Liu",
"rankPoints" : "50045",
"rankName" : "TI__Guru",
"date" : "",
"userId" : "/members/22243",
"content" : "Hi, Our Linux SDK doesn't support SPI slave mode. It has not been validated on TDA2 EVM. Regards, Stanley",
"imageList" : null
} ],
"tags" : [ ],
"fourmType" : "processors-forum"
}