arjun.a
embed files
325bfe1
raw
history blame
2.92 kB
Ticket Name: TDA2SX: Tda2s SPI slave mode reception problem
Query Text:
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]
148 root 0:00 cat /proc/kmsg
149 root 0:00 ps
root@dra7xx-evm:/app#
root@dra7xx-evm:/app#
root@dra7xx-evm:/app#
root@dra7xx-evm:/app#
root@dra7xx-evm:/app# ./spi_rev_tool_32 -D /dev/spidev1.0 -s 1000000 -b 8
[ 36.808325] spidev spi1.0: setup mode 0, 8 bits/w, 48000000 Hz max --> 0
[ 36.809212] spidev spi1.0: setup mode 0, 8 bits/w, 48000000 Hz max --> 0
[ 36.810092] spidev spi1.0: setup mode 0, 8 bits/w, 1000000 Hz max --> 0
<7>[ 36.808304] spidev spi1.0: setup: speed 48000000, sample leading edge, clk normal
<4>[ 36.808325] spidev spi1.0: setup mode 0, 8 bits/w, 48000000 Hz max --> 0
<7>[ 36.809182] spidev spi1.0: spi mode 0
<7>[ 36.809198] spidev spi1.0: setup: speed 48000000, sample leading edge, clk normal
<4>[ 36.809212] spidev spi1.0: setup mode 0, 8 bits/w, 48000000 Hz max --> 0
<7>[ 36.810065] spidev spi1.0: 8 bits per word
<7>[ 36.810079] spidev spi1.0: setup: speed 1000000, sample leading edge, clk normal
<4>[ 36.810092] spidev spi1.0: setup mode 0, 8 bits/w, 1000000 Hz max --> 0
<7>[ 36.810946] spidev spi1.0: xfer len 32 rx tx 8bits 0 usec 1000000Hz
<7>[ 36.810973] spidev spi1.0: setup: speed 1000000, sample leading edge, clk normal
RX | 4D 56 00 00 10 9A 00 00 | MV...?.
RX | 01 01 00 00 00 00 00 00 | ........
RX | 00 00 00 00 00 00 00 00 | ........
RX | 00 00 00 00 00 00 00 00 | ........
RX | 00 00 00 00 00 00 00 00 | ........
RX | 00 00 00 00 00 00 00 00 | ........
RX | 00 00 00 00 00 00 00 00 | ........
RX | 00 00 00 00 00 00 00 00 | ........
<7>[ 36.826262] spidev spi1.0: setup: speed 48000000, sample leading edge, clk normal
<7>[ 36.826462] spidev spi1.0: xfer len 32 rx tx 8bits 0 usec 1000000Hz
<7>[ 36.826487] spidev spi1.0: setup: speed 1000000, sample leading edge, clk normal
<7>[ 36.827021] spidev spi1.0: setup: speed 48000000, sample leading edge, clk normal
<7>[ 36.827126] spidev spi1.0: xfer len 32 rx tx 8bits 0 usec 1000000Hz
<7>[ 36.827149] spidev spi1.0: setup: speed 1000000, sample leading edge, clk normal
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.
Responses:
Hi, Our Linux SDK doesn't support SPI slave mode. It has not been validated on TDA2 EVM. Regards, Stanley