3 Replies Latest reply on Feb 29, 2016 8:53 AM by zhanghang

    Burn c program on the Galileo via eclipse



      I'm using the IOT dev kit and programming via Eclipse.

      I connected to the Galileo and uploaded the the basic program blink, the led blinked for a while, but when i disconnect from the galileo , it stop blinking.

      How can i burn the program and it will stay on the board after i disconnect?

      second, how i can update the mraa libraries from 0.7.2 to 0.7.3?


        • 1. Re: Burn c program on the Galileo via eclipse

          Hi noris1,


          If you are having issues with Eclipse not keeping your code after boot you can consider copying your code into the Linux side of the board as a .c or .cpp file. Then you can compile it with gcc or g++. Also if you need the code to start at boot I suggest you to follow these guide.



          Regarding how to update mraa to 0.7.3., run the following commands:

          echo "src mraa-upm http://iotdk.intel.com/repos/1.1/intelgalactic" > /etc/opkg/mraa-upm.conf
          opkg update
          opkg install libmraa0



          • 2. Re: Burn c program on the Galileo via eclipse

            Hi JPMontero_Intel


            I am responding in regards to the updating mraa to 0.7.3.  I ran the code given but I am still only on mraa 0.7.2, below is the output on the terminal:


            root@galileo:~# opkg update                                                                                                                                                

            Downloading http://iotdk.intel.com/repos/1.1/iotdk/all/Packages.                                                                                                           

            Updated list of available packages in /var/lib/opkg/iotdk-all.                                                                                                             

            Downloading http://iotdk.intel.com/repos/1.1/iotdk/i586/Packages.                                                                                                          

            Updated list of available packages in /var/lib/opkg/iotdk-i586.                                                                                                            

            Downloading http://iotdk.intel.com/repos/1.1/iotdk/quark/Packages.                                                                                                         

            Updated list of available packages in /var/lib/opkg/iotdk-quark.                                                                                                           

            Downloading http://iotdk.intel.com/repos/1.1/iotdk/x86/Packages.                                                                                                           

            Updated list of available packages in /var/lib/opkg/iotdk-x86.                                                                                                             

            Downloading http://iotdk.intel.com/repos/1.1/intelgalactic/Packages.                                                                                                       

            Updated list of available packages in /var/lib/opkg/mraa-upm.                                                                                                              

            root@galileo:~# opkg install libmraa0                                                                                                                                      

            Package libmraa0 (0.7.2) installed in root is up to date.


            I ran my program which outputs on the console that my current mraa version is still 0.7.2.  Am I doing something wrong, or is 0.7.2 actually the most up to date?

            • 3. Re: Burn c program on the Galileo via eclipse

              Hi JPMontero_Intel

              I'm using eclipse iot in Windows and I have the same problem that everything will stop after I disconnect it. I'm using Intel Edison. But I think it's the same reason.

              Can you explain me more detail about your answer?