7 Replies Latest reply on Sep 21, 2015 5:21 PM by PabloM_Intel

    How to connect Arduino IDE to Galileo with SD Image installed?

    elwolv

      Note:  ARduino IDE and usb cable works,     Putty with serial cable works + wifi

      if we want to use Arduino IDE to write a program, and save on the uSD, (how to do that, from arduino IDE?)

       

      next reboot sketch starts from uSD

      in this case the monitor for the serial output, that shows what being logged to the uSD file

       

      will Either be ARduino or Putty (Q:means which com channel will be used to send serial out) in this case

      note in reference to my next question only one com channel can activated at any time on reboot

       

      I only can get the serial com channel active on ARduino ports shown but not the usb--Arduino connection

      Arduino does not commuincate through the serial channel

       

      1- if SD card installedand the serial cable connected we could not get com for the usb cable connection for ARduino IDE

       

      2-  if the serial cable removed but SD card remains + usb cable connected

      we still cant get com for usb-Arduino IDE

       

      3- remove the SD card and reboot and wait we get com connection -  now usb+Arduino IDE only connected

       

      4- using example SD data logger,   the error "error opening datalog.txt"  there no card present

       

      5- install the card while sketch program running - works and logged message appears

       

      6- reboot and examine port on Arduino   com gone for Arduino (because card installed) and no more communication on USB cable

       

      q:  how to use (a) only Arduino IDE with the SD card installed and get communication , (b) install sketch program on the SD card

      and accomplish data logger?

       

       

      do we have to change the ttyS on CARD or Flash where we use Arduino sketch to change the port

      Q: however, if the CARD installed we do not get com at all for   ARduino  IDE?

       

       

      PS:why all these DNS ads highlights, how can we stop that????? is there any blocker that works???

        • 1. Re: How to connect Arduino IDE to Galileo with SD Image installed?
          PabloM_Intel

          Hi elwolv,

           

          You shouldn’t be getting this behavior. We just reproduce your situation and everything works fine for us. I would suggest to download the image again as it might be corrupted. If this doesn’t work, you can try to flash the Galileo Board. You can check this post for further instructions on how to do this, https://communities.intel.com/message/263701#263701. You should check the post by JPMontero_Intel.

           

          Regards,

          PabloM_Intel

          • 2. Re: How to connect Arduino IDE to Galileo with SD Image installed?
            elwolv

            thank you PM-I

             

            flash procedure accomplished as follows:

             

            if the Firmware update does not appear in Arduino IDE, then follow this procedure

            https://communities.intel.com/message/287472

            https://downloadcenter.intel.com/download/24748  ->  “IntelGalileoFirmwareUpdaterUserGuide-1.0.4.pdf”  download and read

            Follow the instruction in the .pdf file

            then, by downloading the updater tool form the same webpage under the .zip for window    IntelGalileoFirmwareUpdater-1.0.4-Windows.zip

            Unplug power, cables, and uSD removed, follow the 2 steps: connect power then connect usb cable and no SD card present.

            Unzip the file, the folder will have .exe file,  click, window appears, change the COMx number and press return, the red message disappear and the firmware update appears, click, progress bar,  finally firmware update complete and new version 1.0.4. press ok

             

            however this did not solve the behavior

            when the 2 cables connected and uSD installed only the com for serial accessible,

            the usb com not visible

            removing the uSD will get the usb-com back on reboot, then insert the disk after the usb-com activated, run  the data logger

            error on serial monitor, then insert the disk we get data log.

            PuTTY shows Clanton (the Flash Image)

             

            reboot: without uSD

               PuTTY shows Clanton,

            Arduino:  shows both communication com

            run datalogger ==>  error opening data log text

            insert uSD - lED flicker  ===> the data log resumes

             

            reboot:  quark uSD shown on PuTTY

            tools: com7 and com 11 present

            datalogger   ==>  error opening serial port 'com7'

            device manager lost com7 only the com11 serial present

            reboot:  wait  com6 appears but not functional

             

            possible driver confusion for USB-serial,  serial com FTDI driver

            how to clean USB drivers and which one we should install

            my understanding that done with the Arduino IDE download?  is that correct?

            ???

            • 3. Re: How to connect Arduino IDE to Galileo with SD Image installed?
              elwolv

              Note:

               

              the behavior examined with the device manager it shows:

              when the usb-cable and serial cable connected + uSD =  we get other devices CDC with yellow warning triangle

              Putty process communication with uSD,

               

              when the uSD removed and reboot = the other device disappear and Galileo(com7) and USB Serial Port(com11) present together and clanton (FLASH starts and function)

               

              Arduino IDE transfer and datalogger shows error opening datalog.txt

              when installed uSD we get NO effect on the device manage, but data log beings immediately

               

              reboot - keep uSD

              other devices - CDC serial with the ! warning

              Com7 disappear

              com11 remains  puttty shows quark

               

              any help explaining this phenomena, about driver not able to stay together?

              • 4. Re: How to connect Arduino IDE to Galileo with SD Image installed?
                elwolv

                Note2:

                remove the serial cable  com11 disappear

                Ardunio IDE could not connect with uSD present

                 

                remove uSD - reboot plus only USB cable -  wait for USB-stack to build 

                com7 appears.

                insert uSD - normal IDE transfer 

                reboot

                com7 disappear

                wait:  other devices  CDC Serial !warning

                no com appears

                 

                thus the serial cable has nothing to do with it

                 

                a relation between CDC and that serial port disabled when uSD inserted?????????????

                ??????????

                will remove IDE and r-install one more time the latest version

                by the way:  1.5.2t, 1.6.0, 1.6.5,  1.6.5t  all has the same behavior

                removed IDE installed latest nightly IDE

                 

                boot with uSD we get CDC! warning

                remove reboot, wait com7 appears

                insert uSD no problem and we access uSD

                however, we cannot load to SD for persistent file

                 

                any help on that

                • 5. Re: How to connect Arduino IDE to Galileo with SD Image installed?
                  PabloM_Intel

                  Hi elwolv,

                   

                  We saw that you opened a new thread for this same issue, so we will continue with the support in this thread, please keep replying here.

                   

                  As I understand by what you pointed out in your posts, your Galileo board works fine when the SD card is not connected to the unit, so this discards any issue with the board. The issue seems to be with your SD card or with the image that is being used. Have you tried using a different SD card? Could you please tell me which SD image you are using? Could you share the download link?

                   

                  Regards,

                  PabloM_Intel

                  • 6. Re: How to connect Arduino IDE to Galileo with SD Image installed?
                    elwolv

                    Hello PM-I

                     

                    1- used Image form the get started i will give names and will try to find the websites

                    old firmware 1.0.2 /changed to 1.0.4 same effect on usb cable com7 disengage immediately on device manager when inserted

                    uSD card

                     

                    Clanton Image firmware 1.0.2   {I believe it would be the this one  IoT - Intel® Galileo Board Download | Intel® Developer Zone

                    because that where I learned about the 2 lib uClibc and eglibc [not used Unix since days of DOS]

                    Quark  http://iotdk.intel.com/images/1.1/iot-devkit-201409031152-mmcblkp0.direct.bz2

                     

                    image-full-galileo,     which contains the SDcar.1.0.4  that used by itself and some time works

                    format empty uSD card

                     

                    my last question:   we use Arduino usb-cable to transfer the program hex, and that very good feature

                    then when uSD installed it becomes the OS and insure the program transfer to persistence storage, where

                    to uSD or the Flash since, i did not read about SRAM?

                    if the program loaded to uSD then we should be able to see that when we read the uSD card in windows just like the Image files

                    and data log file? 

                     

                    since embedded boards use serial port for communication but use other methods and cables to download program to EEPROM

                    which we do not use in this case in Galileo, we do not need that modern time here, use Arduino model ok

                     

                    how do we know the .exe loaded to uSD? 

                    • 7. Re: How to connect Arduino IDE to Galileo with SD Image installed?
                      PabloM_Intel

                      Hi elwolv,

                       

                      Sorry for the late reply. The SD image version must match the firmware version you are using. If you want to use the Arduino IDE I would suggest you to use the uClibc image because the Arduino IDE compiles the code for Galileo in uClibc. Attached is the link to this image http://downloadmirror.intel.com/24355/eng/SDCard.1.0.4.tar.bz2.

                       

                      For troubleshooting steps for the SD card you can check http://www.intel.com/support/galileo/sb/CS-035032.htm.

                      When you program the Arduino IDE using the SD card the sketch will be stored in the SD, not in the flash memory.

                       

                      About the .exe file. To which file are you referring to? Could you please be a bit more specific as to what you want to do?

                       

                      Regards,

                      PabloM_Intel