Hi all,
I am using spidev modalias for spi communication, I used spi test.c to validate which in document folder, but I end up in transfer failed
I am using spidev with kernel version 2.6.35.3
I have got /dev/spidev 2.1
Perror
Invalid argument
If any one face similar problem, provide me patch or suggestions
Thanks
已解决! 转到解答。
probably you did not rebuild image, please look at "scbuild" option on
Best regards
igor
Yes i rebuild all
if following condition i satisfied
struct spi_ioc_transfer tr = {
.tx_buf = (unsigned long)tx,
//.rx_buf = (unsigned long)rx,
.rx_buf = 0, -----------------------------------> need to do
.len = size,
.delay_usecs = spi_setup->delay,
.speed_hz = spi_setup->speed,
.bits_per_word = spi_setup->bits,
.cs_change = spi_setup->cs_change,
};
This works as only write spi/ but not read
Hi shashikant
for L.2.6.35 spidev one can look at
https://community.nxp.com/thread/316764
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
probably you did not rebuild image, please look at "scbuild" option on
Best regards
igor