Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1,465 Views

Intel Galileo gen2 SPI pin configuration issue

Jump to solution

Hi,

I am trying to configure the galileo gen 2 SPI pin 10-13. After executing the following script it shows error as can not set direction for gpio72, gpio74.

SCRIPT::

# !/bin/bash -e

# v0od0ochild

echo "Configuration Spidev1.0 for Galileo-Gen2.."

# pin10

echo 26 > /sys/class/gpio/export || echo "gpio26 already exported"

echo 74 > /sys/class/gpio/export || echo "gpio74 already exported"

echo 27 > /sys/class/gpio/export || echo "gpio27 already exported"

echo low > /sys/class/gpio/gpio26/direction || echo "Failed to set gpio26 low"

echo low > /sys/class/gpio/gpio74/direction || echo "Failed to set gpio74 low"

echo in > /sys/class/gpio/gpio27/direction || echo "Failed to set gpio27 direction in"

# pin11

echo 24 > /sys/class/gpio/export || echo "gpio24 already exported"

echo 44 > /sys/class/gpio/export || echo "gpio44 already exported"

echo 72 > /sys/class/gpio/export || echo "gpio72 already exported"

echo 25 > /sys/class/gpio/export || echo "gpio25 already exported"

echo low > /sys/class/gpio/gpio24/direction || echo "Failed to set gpio24 low"

echo high > /sys/class/gpio/gpio44/direction || echo "Failed to set gpio44 high"

echo low > /sys/class/gpio/gpio72/direction || echo "Failed to set gpio72 low"

echo in > /sys/class/gpio/gpio25/direction || echo "Failed to set gpio25 direction in"

# pin12

echo 42 > /sys/class/gpio/export || echo "gpio42 already exported"

echo 43 > /sys/class/gpio/export || echo "gpio43 already exported"

echo low > /sys/class/gpio/gpio42/direction || echo "Failed to set gpio42 low"

echo in > /sys/class/gpio/gpio43/direction || echo "Failed to set gpio43 direction in"

# pin13

echo 30 > /sys/class/gpio/export || echo "gpio30 already exported"

echo 46 > /sys/class/gpio/export || echo "gpio46 already exported"

echo 31 > /sys/class/gpio/export || echo "gpio31 already exported"

echo low > /sys/class/gpio/gpio30/direction || "Failed to set gpio30 low"

echo high > /sys/class/gpio/gpio46/direction || "Failed to set gpio46 high"

echo in > /sys/class/gpio/gpio31/direction || "Failed to set gpio31 direction in"

echo "SPI Ready"

After executing the above script getting the following error,

Configuration Spidev1.0 for Galileo-Gen2..

./spi11.sh: line 10: /sys/class/gpio/gpio74/direction: No such file or directory

Failed to set gpio74 low

./spi11.sh: line 20: /sys/class/gpio/gpio72/direction: No such file or directory

Failed to set gpio72 low

SPI Ready

Thanks

Anshul

Tags (1)

Accepted Solutions
Highlighted
Employee

Re: Intel Galileo gen2 SPI pin configuration issue

Jump to solution

Hello anshul.jain,

I'm currently working on very similar thread ( ), I should update it soon, why don't you wait for my reply there?

Peter.

View solution in original post

0 Kudos
2 Replies
Highlighted
Honored Contributor III

Re: Intel Galileo gen2 SPI pin configuration issue

Jump to solution

Anshul,

You have posted your query in the support community for Intel's Desktop Board products. You won't get much traction here. I suggest that you re-post your query in the Galileo support community (here: ).

 

...S

 

0 Kudos
Highlighted
Employee
1 View

Re: Intel Galileo gen2 SPI pin configuration issue

Jump to solution

Hello anshul.jain,

I'm currently working on very similar thread ( ), I should update it soon, why don't you wait for my reply there?

Peter.

View solution in original post

0 Kudos