Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 17366

Re: Trouble performing SPI read.

$
0
0

Hi Sergio,

 

Even with uclibc Build [Clanton Tiny] SPI read was unsuccessful.

Source:

BSP 1.0.1  +1.0.4 patches.

Clanton Tiny build.

 

Below are the final messages associated during SPI read. The value of 65535 ( i.e., -1) shows that SPI read was not successful.

 

root@clanton:~# cat /proc/kmsg

<4>[  178.749740] AD7606: ad7606_scan_direct() setting convst.

<4>[  178.905966] AD7606 Data Read Ret 65535.

<3>[  183.591531] AD7606: SPI read Status 0.

<4>[  183.592866] AD7606: After SPI read, Data 65535 ret 0.

<4>[  185.259926] AD7606: ad7606_scan_direct() setting convst.

<4>[  185.415949] AD7606 Data Read Ret 65535.


Earlier Logs show that ADC registration as a SPI device was successful.


[   20.459740] pxa2xx-spi pxa2xx-spi.1: registered master spi1

[   20.469591] spi_master spi1: will run message pump with realtime priority

[   20.477205] spi spi1.0: 25641 Hz actual, PIO

[   20.477266] spi spi1.0: setup mode 2, 8 bits/w, 1000 Hz max --> 0

[   20.478504] AD7606: Registering AD7606 as a SPI platform device.

[   20.490253] AD7606: Driver Probe.

[   20.493612] AD7606: ad7606 Requesting GPIOs.

[   20.535780] AD7606: GPIO's allocation succeeded.

[   20.540449] AD7606: Apply Reset to GPIO 28.

[   20.554630] AD7606: IRQ 63 req.

[   20.561109] AD7606: Probe succeeded 0xCE5EF800.

[   20.570704] pxa2xx-spi pxa2xx-spi.1: registered child spi1.0


I have attached complete logs and the Galileo platform file in which I have made changes.

Please let me know If I have missed any thing for SPI to work properly.

-Simba,


Viewing all articles
Browse latest Browse all 17366

Trending Articles