Hello, I'm having a problem selecting the serial port to upload a ketch to the internal Arduino. When I try to select Tools->Port, the voice is greyed out and I can't select anything. I've found a post with the same issue here (https://www.udoo.org/forum/threads/solved-uploading-a-sketch-serial-port-issue.99/). I've tried to solve it with the advice reported there, creating a symbolic link to the internal serial port (/dev/ttymxc3) with a command line in the terminal, but nothing. I'm running the last release of Ubuntu Studio. I'm loosing for sure something obvious... Can you help me please?
That topic is for a Udoo dual/quad and solution will not work. It looks like your installation of Arduino IDE including Arduino 101 board manager failed. Please deinstall the Arduino IDE completely including everything from Arduino in your home/.arduino15 folder. Then install it again according the instructions from here https://www.udoo.org/docs-x86/Arduino_101_(Intel_Curie)/Getting_Started_with_Arduino_101.html
Ok, thank you! Now I see the serial port from the IDE, but it seems to have another problem. When I try to upload a sketch on the board, it give me this errors: Code: processing.app.debug.RunnerException at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:160) at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78) at processing.app.SketchController.upload(SketchController.java:713) at processing.app.SketchController.exportApplet(SketchController.java:686) at processing.app.Editor$DefaultExportHandler.run(Editor.java:2168) at java.lang.Thread.run(Thread.java:748) Caused by: processing.app.SerialException: Error touching serial port '/dev/ttyACM0'. at processing.app.Serial.touchForCDCReset(Serial.java:107) at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:144) ... 5 more Caused by: jssc.SerialPortException: Port name - /dev/ttyACM0; Method name - openPort(); Exception type - Permission denied. at jssc.SerialPort.openPort(SerialPort.java:170) at processing.app.Serial.touchForCDCReset(Serial.java:101) ... 6 more I'm using the 1.8.5 of the IDE, selected Arduino/Genuino 101 as board.
I've downloaded the Genuino 101 Library, tried to follow the guide here, but the scripts didn't find the directories. Maybe that is the problem?
Sorry, I've missed the link: https://www.udoo.org/docs-x86/Arduino_101_(Intel_Curie)/Getting_Started_with_Arduino_101.html
From your first post: If that symbolic link is still there and pointing to the wrong serial port (/dev/ttymxc3) then you also have the kind of issues you are reporting now. So you have to remove it.
Yes, but I have rebooted. I haven't modified the rc.local, so the link shoud not be there anymore, right?
Yes it should not be present. You could try the following (used to be a fix for older Arduino IDE and location of the rule scripts could be different): chmod +x ~/.arduino15/packages/Intel/hardware/arc32/2.0.2/scripts/create_dfu_udev_rule sudo ~/.arduino15/packages/Intel/hardware/arc32/2.0.2/scripts/create_dfu_udev_rule
Thank you! It wasn't working also with those lines of codes. Tried to reinstall all the things (IDE and Curie libraries), used again the commands and now it seems to work fine. I've tried also on Win 10 for curiosity. Initially the serial port was accessible but the sketches didn't upload at all. I've uninstall the curie 2.0.2 library and tried with a previous versione, the 1.0.6 and now it's uploading every sketch like a charm. I've rebooted after every change (install and uninstall) Thank you for your help, it has been crucial.