Community
cancel
Showing results for 
Search instead for 
Did you mean: 
RBrad4
Novice
2,621 Views

Keep getting compile error/no file or folder

Have been trying to get my Galileo gen 2 board to run the blink program, to no avail. Followed getting started instructions. Followed suggestions from forums. Keep getting compile error/ file or folder does not exist. Does anyone know of a video (which shows step by step) or phone number to contact someone for help? I am not sure I am doing everything in the proper sequence. Also when I run arduino for the first time to attempt to run the blink led sketch, arduino opens a blank sketch window. When I choose the blink example, another arduino window opens with the sketch in it. Is this normal? Any help is appreciated. For something that is suppose to be fairly easy, this is very frustrating. Using Intel I5 Windows 7 64 bit with arduino IDE.Thx.

25 Replies
idata
Community Manager
209 Views

Hi,

 

 

I'm really sorry to hear that you have had these problems while trying to use the board.

 

When you select the example it is normal that the IDE opens a new window.

 

Are you following this guide https://software.intel.com/en-us/iot/library/galileo-getting-started https://software.intel.com/en-us/iot/library/galileo-getting-started ?

 

Which Arduino IDE version are you using?

 

Did you have problems while installing the boards with the Boards Manager on the IDE?

 

Could you attach the full log of the error you are getting on the Arduino IDE?

 

 

Regards,

 

Charlie
RBrad4
Novice
209 Views

Hello all responders and thank you for responding.

I have used the Getting started guide 2 times. Each time the gen 2 was setup on com3. I had no errors, until I went to load the blink sketch, which gives me the compile/ no file no directory error. I then used advice from the forum about loading drivers manually etc. On this instance the board was then setup on com4. I though aha! maybe it was trying to use the wrong com port. Everything loaded without error until again trying to upload the example blink sketch. I have never had any errors until trying to upload the sample sketch. The arduino IDE version is reporting as 1.6.4. The error is

(i586-poky-linux-uclibc-g++: error: CreateProcess: No such file or directory.

Error compiling.)

Thanks again, and eagerly awaiting more replies.

FTinetti
Honored Contributor I
209 Views

rlbradley wrote:

Hello all responders and thank you for responding.

I have used the Getting started guide 2 times. Each time the gen 2 was setup on com3.

From this I assume you installed the Galileo drivers successfully. Just in case, please show the screen of the device manager before and after you plug the Galileo to the USB (both screens, please)

Each time the gen 2 was setup on com3. I had no errors, until I went to load the blink sketch, which gives me the compile/ no file no directory error.

Just in case: did you upgrade the firmware card successfully?

HTH,

Fernando.

RBrad4
Novice
209 Views

You know I have been working on this so many times today, I don't remember if I updated the firmware the last time. Do I need to uninstall everything in order to upgrade the firmware? Or can I do it as is? How can I tell which firmware is running now?

RBrad4
Novice
209 Views

There are no ports before plugged in. When plugged in galileo gen 2 shows up on com4.

FTinetti
Honored Contributor I
209 Views

rlbradley wrote:

You know I have been working on this so many times today, I don't remember if I updated the firmware the last time. Do I need to uninstall everything in order to upgrade the firmware? Or can I do it as is? How can I tell which firmware is running now?

No need to uninstall to upgrade the firmware.

Please run the Firmware Updater tool (IntelGalileoFirmwareUpdater-1.0.4-Windows) set the proper COM port (COM4 in your screen, but check each time you plug in the Galileo) and it should show 1.0.4 in the "Current Board Formware" field. If not, then set 1.0.4 in the "Update firmware version" field.

Fernando

idata
Community Manager
209 Views

Hi rlbradley,

 

 

Did you update the firmware of your board as Fernando suggested?

 

I saw you are using the 1.6.4 Arduino IDE version, I suggest you to use a newer version from https://www.arduino.cc/en/Main/Software https://www.arduino.cc/en/Main/Software

 

You can also try by changing the COM port number of the PC, it may be restricted so you could have problems, try the following:

 

Go to the Device Manager > Ports and right click on Galileo(COM4) and select Properties > Port Settings > Advanced… and change the COM port number. Then click OK and OK.

 

I also suggest you to use different USB cables and ports. Are you using a 2.0 or 3.0 USB ports? There are some problems that have been reported while using 3.0 USB ports with the Galileo.

 

 

Regards,

 

Charlie

 

FTinetti
Honored Contributor I
209 Views

Hi rlbradley,

Where you able to install the drivers and update firmware?

I suggest you follow the step-by-step guide starting at https://software.intel.com/en-us/iot/library/galileo-getting-started IoT - Intel® Galileo Board Get Started Guide | Intel® Developer Zone and tell us the first failing step. I've installed and used the Galileo following that guide.

About

Also when I run arduino for the first time to attempt to run the blink led sketch, arduino opens a blank sketch window. When I choose the blink example, another arduino window opens with the sketch in it. Is this normal?

Yes, the Arduino IDE always opens a new window each time you select to open a sketch, being from examples or a saved one.

Edit: About

Does anyone know of a video ...?

I don't know of any video and since I have already installed drivers in my computer the video I would make would show different steps...

HTH,

Fernando.

MBlak2
New Contributor I
209 Views

Yes, it is normal behavior. The Arduino IDE opens up with a new sketch using the date and a lower case letter.

when you open another one, even an example sketch -- it opens in a new window. You can close the first one if you want, or work in multiple windows, but -- when you compile and upload -- it will use whatever sketch is loaded in that window.

I do not think you have a problem with the communications or the device -- it is with the Arduino IDE -- it cannot find the sketch source, or one of its dependencies. Perhaps your installation is not proper. A screen shot of the error would be super in helping you further, but -- as you can see -- the Arduino IDE will happily compile a sketch, even if there is no board on the COM port. You said it isn't compiling, right? If it is Blink, that is particularly strange, because the file is open and it has no external dependencies. In looking at the process in the terminal window -- the process relies on additional folders, like your temp folder, and if the IDE version is 1.0.6 like the first few images -- there is another folder that must exist where that IDE was installed.

So, it will fail on upload if the COM port is wrong. Also, the board firmware is likewise not in question, here.

I would be checking that the examples and libraries were installed correctly -- that is another common misfire in this type of development system.

I just downloaded the latest Arduino IDE for Galileo and installed it -- you must install the Galileo specific board manually using the Boards Manager. In the below images I have already installed it.

Here is where that installs to --

And here is what that terminal window looks like compiling Blink with no Galileo 2 connected. --

You should see a COM Port like this in the new IDE...

And success looks like this...

idata
Community Manager
209 Views

Hi rlbradley,

 

 

Do you have updates on this?

 

I would like to know if you have tried some of the latest suggestion we have posted.

 

 

Regards,

 

Charlie
RBrad4
Novice
209 Views

Hi Charlie and all responders,

My apologies for not responding sooner. I was gone for a week due to my job. I will be trying these suggestions today and I will post my results.

Thank you,

Rennie.

RBrad4
Novice
209 Views

Ok. So I updated the firmware to 1.6.8. Changed the com port to 14 on one blink try. Changed the com port to 6 on the second try. I checked the serial monitor and this is the message I am getting on both ports. (Port not found). I then tried compiling the blink program with no board connected and got this message.

So I am assuming that there was something missed during installation since it cant find a folder or directory??

RBrad4
Novice
209 Views

Here is my file folder for arduino. Looks the same as your second screen shot.

FTinetti
Honored Contributor I
209 Views

Hi,

It seems to be that your Arduino installation is not working, since you cannot compile.

Uninstall every Arduino installation and delete every Arduino-related software, so you start from scratch.

Please follow the step-by-step guide at the Intel site, document every step you make and send the result/s so we can figure out what happens.

HTH,

Fernando.

RBrad4
Novice
209 Views

Hello Fernando,

Do I also need to uninstall the galileo software, or just the Arduino IDE?

MBlak2
New Contributor I
209 Views

A complete reinstallation should not be necessary -- it does not really pay to use the big hammer every time the COM port dies -- because -- that happens frequently, especially on Windows systems. It would be a better tactic in my opinion to study how Arduino fails after the COM port driver dies, how to avoid having it fail in the first place and finally, how to reinstall the drivers from the Arduino installation that exists already. I said this before, but it bears saying again -- this is a rather frequent occurrence -- you really ought to use safely remove and not use that USB port for anything else. It also depends on how many things you have plugged into the same physical USB port since you brought up that system -- Windows will remember everything, even things that are not currently connected. It won't load drivers for them, but -- it will get slower recognizing them and that is what causes some devices to get the wrong driver applied to them after a hot swap. It isn't nearly as difficult to fix that as it is to reinstall the entire Arduino IDE. For one thing, the COM port assigned will often keep getting higher in number and you run the very real risk of leaving a lot of orphaned COM ports, which causes other problems for your USB ports in general. I posted a series of images about that elsewhere a few days ago. In general, I remove all orphaned COM ports and reassign the one I want to the lowest open number.

Basically, the process involves starting Device Manager and finding the port in the first place. It might still be listed as a Galileo port, or -- in my case and this other guy's -- it was stuck in Other Devices, as CDC Serial -- and it has that yellow icon that lets you know its driver is dead. You will need to reinstall the drivers for it.(You can right click on a device and will be offered to Update Driver Software....) Choose to let you find it on your system. Pick "Intel Corporation" and "Galileo" should appear. Ignore the warning and reinstall the driver that already exists on your machine. Once it installs, it will show up as a Galileo in COM ports -- if you are connected to your Galileo and it is powered up. Note -- do not be running the Arduino IDE while you recover the Galileo's COM port -- it only really checks on startup and it is written in Java and not exactly Windows device friendly. In general, only start the IDE after you are sure the COM port is okay. If you cannot see it under Tools/Port -- as a Galileo -- you might as well exit and fix it because it isn't going to magically appear.

I might as well put some images in to show that process...

Let me start at the beginning/end. This is what you want to see in Arduino IDE before even attempting to compile and upload --

Here is what my Galileo port looks like in Device Manager when it has died...

Right click and choose Update Driver Software

Choose Browse my computer for driver software.

Choose Intel Corporation and Galileo. Click Next.

Ignore. Click Yes.

Almost happy, now. Click Close.

When you see this -- you can safely start the Arduino IDE with a reasonable expectation of being able to use it with your Galileo. You can right click here and reassign the com port number if you want to. The Arduino IDE will pick that up when it searches for COM ports to use -- but it only appears to do that on startup -- a common mistake using Windows USB devices.

RBrad4
Novice
209 Views

Ok Fernando,

I think you are on to something. Since you mentioned that compiling the sketch is independent and doesn't need a board to compile, I tried compiling without choosing a board or com port. Got the exact same compiling error. So I took your advice and uninstalled everything. Then reinstalled everything and documented the outcome. So, here it goes.

Step 1: Choose OS - Option=windows. I am running windows7.

Step 2: Choose IDE - Option=Arduino

Step 3: Power up board - Supplied power first. "On" l.e.d. lights up first. USB l.e.d. lights up shortly afterward.

3A: Connected USB cable to PC and USB client on the board. My PC recognized that new hardware was installed. The search for a driver failed. I then closed the driver installation window. (I assume it failed because the drivers have not been installed on pc yet).

Step 4: Installed drivers and the Arduino IDE. Chose Option=Download 64bit version. A dialogue box appears asking if I want to run or save. Option=run.

4A: A dialogue box labeled "User account control" pops up and asks if I want to allow changes to my hard drive. Option=yes.

4B: Intel Galileo "Welcome" dialogue box appears. Option=next.

4C: Accept terms of license agreement appears. Option=accept.

4D: Components to be installed dialogue box appears. Option=drivers and Arduino IDE.

4E: Prompted to choose destination folder. The default was C:\Intel so I left it alone. Option=C:\Intel Option=Next

4F: Installation summary window appears. Option=next

4G: A Windows security window pops up and asks if I would like to install this software. (Name: Intel Corp ports (com&LPT)) (Publisher:DCSG Validation tools). I assume - Option=Install.

4H: PC downloads Arduino 1.6.4.Zip and installs Galileo drivers.

4i: PC starts extracting file "Arduino-1.6.4\tools\mangler\src\Mangler.java

This is where I think the problem lies: A dialogue box appears and states - "Sketchbook folder disappeared. Sketchbook folder no longer exists. Arduino will switch to default sketchbook location, and create new if necessary".

4J: Only option. Option=OK

4K: PC finishes IDE installation and says that my Galileo is now ready to try the blink program. Tried it and again the same "compile" error.

I remembered that Arduino can show me where it thinks the sketch folder lies on the PC. The screenshot above depicts where arduino says the sketch folder is. "C:\Users\Rennie\AppData\Local\Temp\Untitled******.tmp\sketch_apr17. Seems a long way from C:\Intel where Arduino and drivers were installed. I do not think the sketch folder is being created, or put in the right place as it states that it will?? Does this seem right to you on the location. What path does Arduino report your sketch folder as? Keep in mind that at this time I have not upgraded the firmware yet. At this point I am leaving it as a fresh install from the Getting Started guide.

So in Arduino I select menu . The sketchbook location path is C:\Users\Rennie\Documents\Arduino. This is the same path that the preference.txt file has in it.

This seems like two completely different paths to me.

Again thanks again to everyone. I think we are getting closer...?

FTinetti
Honored Contributor I
209 Views

rlbradley wrote:

Ok Fernando,

I think you are on to something. Since you mentioned that compiling the sketch is independent and doesn't need a board to compile, I tried compiling without choosing a board or com port. Got the exact same compiling error. So I took your advice and uninstalled everything. Then reinstalled everything and documented the outcome. So, here it goes.

Step 1: Choose OS - Option=windows. I am running windows7.

Step 2: Choose IDE - Option=Arduino

Step 3: Power up board - Supplied power first. "On" l.e.d. lights up first. USB l.e.d. lights up shortly afterward.

3A: Connected USB cable to PC and USB client on the board. My PC recognized that new hardware was installed. The search for a driver failed. I then closed the driver installation window. (I assume it failed because the drivers have not been installed on pc yet).

Step 4: Installed drivers and the Arduino IDE. Chose Option=Download 64bit version. A dialogue box appears asking if I want to run or save. Option=run.

4A: A dialogue box labeled "User account control" pops up and asks if I want to allow changes to my hard drive. Option=yes.

4B: Intel Galileo "Welcome" dialogue box appears. Option=next.

4C: Accept terms of license agreement appears. Option=accept.

4D: Components to be installed dialogue box appears. Option=drivers and Arduino IDE.

4E: Prompted to choose destination folder. The default was C:\Intel so I left it alone. Option=C:\Intel Option=Next

4F: Installation summary window appears. Option=next

4G: A Windows security window pops up and asks if I would like to install this software. (Name: Intel Corp ports (com&LPT)) (Publisher:DCSG Validation tools). I assume - Option=Install.

4H: PC downloads Arduino 1.6.4.Zip and installs Galileo drivers.

4i: PC starts extracting file "Arduino-1.6.4\tools\mangler\src\Mangler.java

This is where I think the problem lies: A dialogue box appears and states - "Sketchbook folder disappeared. Sketchbook folder no longer exists. Arduino will switch to default sketchbook location, and create new if necessary".

4J: Only option. Option=OK

4K: PC finishes IDE installation and says that my Galileo is now ready to try the blink program. Tried it and again the same "compile" error.

/* IMAGE ERASED */

I remembered that Arduino can show me where it thinks the sketch folder lies on the PC. The screenshot above depicts where arduino says the sketch folder is. "C:\Users\Rennie\AppData\Local\Temp\Untitled******.tmp\sketch_apr17. Seems a long way from C:\Intel where Arduino and drivers were installed. I do not think the sketch folder is being created, or put in the right place as it states that it will?? Does this seem right to you on the location. What path does Arduino report your sketch folder as? Keep in mind that at this time I have not upgraded the firmware yet. At this point I am leaving it as a fresh install from the Getting Started guide.

So in Arduino I select menu . The sketchbook location path is C:\Users\Rennie\Documents\Arduino. This is the same path that the preference.txt file has in it.

/* IMAGE ERASED */

This seems like two completely different paths to me.

Again thanks again to everyone. I think we are getting closer...?

Now I can see that most likely the problem is at STEP 4: "Chose Option=Download 64bit version.", I've heard several reports of this installer failing. Besides, it installs a little bit old Arduino IDE version, 1.6.4, while the current version is 1.6.8

Please select "https://software.intel.com/en-us/installing-drivers-and-updating-firmware-for-arduino-windows Use the manual process" which is a little bit longer but also better to understand everything happening in the process. Besides, it will lead you to install the last Arduino IDE version which includes a specific section on installing the Galileo card in the Arduino IDE.

Please follow the steps from that selection at step 4 and let me know the result.

Fernando.

idata
Community Manager
209 Views

Hi,

 

 

Let's try with the following:

 

After uninstalling the IDE, delete the folder (and all the files inside it) on C:\Users\Rennie\AppData\Local\Arduino15

 

You can change the sketchbook location as you want.

 

Using the Arduino 1.6.8; after installing the IDE, are you installing the packages for the Galileo Board on the "Boards Manager"?

 

Is the error appearing after using the button Verify or the Upload one on the IDE?

 

If after using the Verify button and with the Galileo Board selected on Tools you don't have problems, it means that the IDE is compiling right and the problem is while sending the sketch to the board. It is required to select the correct board before Verify the sketch (compile), due that this makes the IDE to look into the correct paths for libraries and flags for the Cross Compiler.

 

Please let us know about this.

 

 

Regards,

 

Charlie
FTinetti
Honored Contributor I
82 Views

Hi Charlie,

Intel Corporation wrote:

Hi,

 

 

Let's try with the following:

 

After uninstalling the IDE, delete the folder (and all the files inside it) on C:\Users\Rennie\AppData\Local\Arduino15

 

You can change the sketchbook location as you want.

 

Using the Arduino 1.6.8; after installing the IDE, are you installing the packages for the Galileo Board on the "Boards Manager"?

 

...

 

Regards,

 

Charlie

I think he is not installing 1.6.8, it seems to be (from rlbradley's description) that the installer has 1.6.4 bundled... isn't it?

Fernando.

Reply