|
Hi everyone,
I have a question on cubietruck SPI, and am seeking help from this group. Hope someone can help me.
My target OS is android, and the BSP is cubieboard2_android_SDK_v1.09. The SPI2 (pin5~8) is used and the configuration is as following:
[spi2_para]
spi_used = 1
spi_cs_bitmap = 1
spi_cs0 = portC19<3><default><default><default>
spi_cs1 = portB13<2><default><default><default>
spi_sclk = portC20<3><default><default><default>
spi_mosi = portC21<3><default><default><default>
spi_miso = portC22<3><default><default><default>
[spi_devices]
spi_dev_num = 1
[spi_board0]
modalias = "spidev"
max_speed_hz = 12000000
bus_num = 2
chip_select = 0
mode = 0
full_duplex = 0
manual_cs = 0
When I try to debug the spi driver, I got the log info as following:
[spi-dbg] sun7i_spi_transfer: enter
[spi-dbg] sun7i_spi_work: enter
[spi-dbg] sun7i_spi_xfer: spi2 begin transfer, txbuf ecea2ac0, rxbuf (null), len 246
[spi-dbg] spi_set_bc_wtc: bc: 246
[spi-dbg] spi_set_bc_wtc: tc: 246
[spi-dbg] sun7i_spi_prepare_dma: enter
[spi-dbg] sun7i_spi_config_dma: enter
[spi-dbg] sun7i_spi_start_dma: enter
[spi-dbg] sun7i_spi_xfer: spi2 wait for xfer complete
init: sys_prop: permission denied uid:1003 name:service.bootanim.exit
start_powernow uncare mode:859320624!
wait for xfer complete[spi-dbg] sun7i_spi_transfer: enter
/dev/ttyS0[1]: wait: for: argument must be %job or process id
/dev/ttyS0[1]: wait: xfer: argument must be %job or process id
/dev/ttyS0[1]: wait: complete[spi-dbg]: argument must be %job or process id
/dev/ttyS0[1]: wait: sun7i_spi_transfer:: argument must be %job or process id
/dev/ttyS0[1]: wait: enter: argument must be %job or process id
[spi-dbg] sun7i_spi_work: enter
/dev/ttyS0[2]: [spi-dbg]: not found
[spi-dbg] sun7i_spi_xfer: spi2 begin transfer, txbuf ecea2ac0, rxbuf (null), len 246
/dev/ttyS0[3]: syntax error: '(' unexpected
[spi-dbg] sun7i_spi_prepare_dma: enter
/dev/ttyS0[1]: [spi-dbg]: not found
[spi-dbg] sun7i_spi_config_dma: enter
/dev/ttyS0[2]: [spi-dbg]: not found
[spi-dbg] sun7i_spi_start_dma: enter
/dev/ttyS0[3]: [spi-dbg]: not found
[spi-dbg] sun7i_spi_xfer: spi2 wait for xfer complete
Somehow SPI transferring was never get finished.
May someone tell me what's wrong and how to do?
Thanks a lot in advance!
|
|