Project

General

Profile

Activity

From 09/13/2017 to 10/12/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. Brian Wentworth
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:
Michael Williamson
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.
Brian Wentworth
MW 01:02 PM Software Development: RE: spi mode error
Is your file descriptor, fd, valid?
Michael Williamson
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
Brian Wentworth

09/20/2017

BW 08:30 PM Software Development: spi mode error
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");
...
Brian Wentworth

09/18/2017

NH 05:54 PM Software Development: RE: Using EEPROM available on MitySOM-5CSX
Update: Thanks to your help we have been able to successfully use a partition of the QSPI NOR flash to store critical system information. There was a change of formatting for the device tree between kernel versions such that after updati... Nicholas Herbert
 

Also available in: Atom