Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
916 Views

Programming Intel Galileo Gen2 board using Yocto linux

Jump to solution

Hi,

down votehttps://stackoverflow.com/questions/46750721/intel-galileo-gen2-programming-in-yocto-linux favorite

Any expert in Intel galileo gen2 projects out there?

I am doing an assignment in which I have o program it using yocto linux. As a starting step, I am trying to glow the onboard led.

at first, I used the below commands echo "13" > /sys/class/gpio/export

echo "out" > /sys/class/gpio/gpio13/direction

echo "1" > /sys/class/gpio/gpio13/value

The LED did not blink Later I realised that the "13" notation on the galileo board doesnt mean that is the GPIO13 .

this notation refers to Arduino IDE not to the Linux OS libraries.

So i changed the commands with gpio7. referring the link /thread/55920 https://communities.intel.com/thread/55920

Anybody expert please helpme how can I make it work?

Also, I want to know the jumper pin connection for getting 3.3 v for I/O pins . I know I have to connect the IOREF jumper to 3,3 v pin beside it. But I am not knowing what kind of wires should I use to connect them?

Please suggest some tips.

Thanks in advance.

Regards, Poornima

0 Kudos

Accepted Solutions
Highlighted
Community Manager
32 Views

Hi Poornima

Thanks for reaching out.

In order to configure the GPIO try the following steps:

echo 7 > /sys/class/gpio/export

 

echo 30 > /sys/class/gpio/export

 

echo 46 > /sys/class/gpio/export

 

echo 31 > /sys/class/gpio/export

 

echo low > /sys/class/gpio/gpio30/direction

 

echo low > /sys/class/gpio/gpio46/direction

 

echo in > /sys/class/gpio/gpio31/direction

To control de LED status:

echo 1 > /sys/class/gpio/gpio7/value

 

echo 0 > /sys/class/gpio/gpio7/value

On the other hand, you should use the IOREF jumper (no cables required) to match the operating voltage you prefer, in this case 3.3v. The IOREF pins are next to the Ethernet port.

Hope this information helps.

Regards,

 

-Yermi A.

View solution in original post

0 Kudos
1 Reply
Highlighted
Community Manager
33 Views

Hi Poornima

Thanks for reaching out.

In order to configure the GPIO try the following steps:

echo 7 > /sys/class/gpio/export

 

echo 30 > /sys/class/gpio/export

 

echo 46 > /sys/class/gpio/export

 

echo 31 > /sys/class/gpio/export

 

echo low > /sys/class/gpio/gpio30/direction

 

echo low > /sys/class/gpio/gpio46/direction

 

echo in > /sys/class/gpio/gpio31/direction

To control de LED status:

echo 1 > /sys/class/gpio/gpio7/value

 

echo 0 > /sys/class/gpio/gpio7/value

On the other hand, you should use the IOREF jumper (no cables required) to match the operating voltage you prefer, in this case 3.3v. The IOREF pins are next to the Ethernet port.

Hope this information helps.

Regards,

 

-Yermi A.

View solution in original post

0 Kudos