1 Reply Latest reply on Oct 16, 2017 2:41 PM by Intel Corporation

    Programming Intel Galileo Gen2 board using Yocto linux

    Poornima

      Hi,

       

      down votefavorite

       

       

      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 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.IMG_20171014_115934166.jpg

      Thanks in advance.

      Regards, Poornima

        • 1. Re: Programming Intel Galileo Gen2 board using Yocto linux
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          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.