So yeah I was working on a little project, using the Arduino IDE (1.6.5) and a bit of python, when all of a sudden the Edison stopped accepting any Arduino sketch. Like, it was working okay for a while, and i didn't even reboot it before I came across this problem. Here's the message from the Arduino IDE:
# COM ports are not always setup to be addressed via COM for redirect.
# /dev/ttySx are present. Howwever, COMy -> /dev/ttySx where x = y - 1
echo "COM PORT" $com_port_id
echo "Converted COM Port" $com_port_arg "to tty port" $tty_port_id
echo "Sending Command String to move to download if not already in download mode"
echo "~sketch downloadEdison" > $tty_port_id
C:\Users\Dell\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: line 42: /dev/ttyS3: No such file or directory
# Move the existing sketch on target.
echo "Deleting existing sketch on target"
"$fixed_path/lsz.exe" --escape -c "mv -f /sketch/sketch.elf /sketch/sketch.elf.old" <> $tty_port_id 1>&0
C:\Users\Dell\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: line 46: /dev/ttyS3: No such file or directory
# Execute the target download command
# Download the file.
"$fixed_path/lsz.exe" --escape --binary --overwrite $host_file_name <> $tty_port_id 1>&0
C:\Users\Dell\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: line 51: /dev/ttyS3: No such file or directory
Moving downloaded file to /sketch/sketch.elf on target
# mv the downloaded file to /sketch/sketch.elf
echo "Moving downloaded file to /sketch/sketch.elf on target"
"$fixed_path/lsz.exe" --escape -c "mv $target_download_name /sketch/sketch.elf; chmod +x /sketch/sketch.elf" <> $tty_port_id 1>&0
C:\Users\Dell\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: line 56: /dev/ttyS3: No such file or directory
This isn't the entire message but hopefully enough for someone to figure out the problem, because its just hieroglyphs to me.
What i have tried:
1. Deleted sketch.elf and sketch.elf.old in /sketch on the Edison (I've done this before when i had such problems. Note that i did this After the problem began)
2. Tried to use 1.6.4 instead of 1.6.5 IDE (but to no avail, same errors)
3.Reinstalled the edison AND FTDI drivers (downloaded the standalone drivers)
4. Checked the come ports:
Intel virtual com port - com4 -- I've selected this port in the Arduino IDE
USB Serial Port - com6 -- putty works absolutely alright
5. Reflashed the image (version 159)
6. Checked usb cables, connections etc
7 Reset the Edison a million times
Obviously none of this worked. I dont know what will.
Some other details that might be helpful:
I'll be grateful to anyone who can help me because i'm really trying to finish this project before tuesday. Thanks in Advance!
And the board just stopped uploading sketches for no reason? Did you change any configuration setting? What OS are you using in your computer? In what folder is your Arduino IDE folder, did you made any changes to the Arduino IDE folder like add or remove any libraries or modify any paths? Have you tried to re-install your IDE? Have you tried to use different USB cables and using an external power supply?
I found a thread with a similar issue . The thread discusses a Galileo Gen 2 board but the solution may apply to you as well. Try the suggestion posted and let me know your results.
I don't think i changed any setting before the problem occurred. I'm using windows 7 professional.
Well I've installed the Arduino IDE on a different laptop (using the edison integrated installer), and it seems to work fine, more or less. Sometimes i get an error saying "Permission denied" or something, but that's fixed when I run Arduino IDE as Administrator.
On the other computer, the problem still persists; and i think its because I've installed two IDEs - 1.6.5 (from the arduino website) and 1.6.4 (from the edison integrated installer) and there's some conflict between them... So maybe I'll have to reinstall.
I'll notify you if that works. Thanks for your help anyways!
Well I've done a lot of stuff till now.
I've uninstalled all intel edison related files, drivers etc (using the downloaded installer - it uninstalls everything on its own). I've also uninstalled the original Arduino IDE. Well now I've reinstalled only the Edison files (including Arduino 1.6.5 from the edison installer, the drivers, and the phone flash tool). I followed the steps for getting started with the edison for how to install the drivers and all.
Now finally I can upload sketches to my board, and the serial connection works fine. One thing though, in device manager, under com ports and lpt, I only see USB Serial Device and Intel Edison Virtual com port, but no USB composite device port, though I've seen it in the getting started tutorial. Why is this happening? Should I be concerned?
Take a look at https://software.intel.com/en-us/get-started-edison-windows-32-step2 IoT - Step 2: Install drivers | Intel® Developer Zone . Make sure you installed all drivers needed, additionally; there are some troubleshooting steps at the end of the document.
Try and let me know your results.
I don't recall the Edison version numbering. Is 159 a recent version?
In older builds it was a frequent issue that journal would fill /var/log/journal and with that the whole disk (see e.g. ). In that case you would exactly see the effect you describe: from now to then suddenly no sketch upload any longer
No, that issue has been fixed in version 159, which is i think the latest. I'm pretty sure its not a problem of space left on the edison; I've verified by using the df -h command. Most probably its a software issue on the computer i'm using; the IDE works fine on a different computer so I'm using that one. Thanks for the suggestion though