Activity
From 09/19/2017 to 10/18/2017
09/26/2017
- BW 05:11 PM Software Development: RE: spi mode error
- This solved the error but there is no change to the spi mode.
- MW 01:56 PM Software Development: RE: spi mode error
- I think the SPI_IOC_WR_MODE is looking for the argument to be an address pointer (char*) pointing to the SPI_MODE_1 value.
Can you try: - BW 01:34 PM Software Development: RE: spi mode error
- Yes I can send and receive using : ret = ioctl(fd, SPI_IOC_MESSAGE(1), &tr);
but only in spi mode 0x0. If I try and set the spi mode using the command above I get the pavort error. - MW 01:02 PM Software Development: RE: spi mode error
- Is your file descriptor, fd, valid?
- BW 01:00 PM Software Development: RE: spi mode error
- I have not been able to get this to work. Does anyone have any idea why this is happening?
Thanks,
Brian
09/20/2017
- I'm trying to uses the hps spi controller and am getting an error trying to set the spi mode. I'm using spidev and when I run this code:
ret = ioctl(fd, SPI_IOC_WR_MODE, SPI_MODE_1);
if (ret == -1)
pabort("can't get spi mode");
...