SPI not working on nanopi-m4 android 8.1?
Posted: Wed Aug 14, 2019 5:07 am
I'm trying to get spi working on m4/8.1.
I am able to setup the port, but only write one character. After that, all calls to SPI return -1.
I can see the single byte appear on the SPI bus.
At boot the spi device reports errors:
[ 1.015664] rockchip-spi ff1d0000.spi: Failed to request TX DMA channel
[ 1.015683] rockchip-spi ff1d0000.spi: Failed to request RX DMA channel
[ 1.015693] rockchip-spi ff1d0000.spi: no high_speed pinctrl state
int r = HardwareControler.SPItransferOneByte(devFD, (byte)3, 0, 1000000 , 8);
r returns 255 the first time, and then -1 from then after...
I am able to setup the port, but only write one character. After that, all calls to SPI return -1.
I can see the single byte appear on the SPI bus.
At boot the spi device reports errors:
[ 1.015664] rockchip-spi ff1d0000.spi: Failed to request TX DMA channel
[ 1.015683] rockchip-spi ff1d0000.spi: Failed to request RX DMA channel
[ 1.015693] rockchip-spi ff1d0000.spi: no high_speed pinctrl state
int r = HardwareControler.SPItransferOneByte(devFD, (byte)3, 0, 1000000 , 8);
r returns 255 the first time, and then -1 from then after...