Issue with Serial Port and Arduino IDE on UDOO x86

Discussion in 'UDOO X86' started by endorak, Aug 13, 2018.

  1. endorak

    endorak New Member

    Joined:
    Aug 13, 2018
    Messages:
    7
    Likes Received:
    1
    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?
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  3. endorak

    endorak New Member

    Joined:
    Aug 13, 2018
    Messages:
    7
    Likes Received:
    1
    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.
     
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Did you remove the symbolic link you created to the serial port?
     
  5. endorak

    endorak New Member

    Joined:
    Aug 13, 2018
    Messages:
    7
    Likes Received:
    1
    I'm not sure what are you talking about, but I've also tried with this option .
     
  6. endorak

    endorak New Member

    Joined:
    Aug 13, 2018
    Messages:
    7
    Likes Received:
    1
    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?
     
  7. endorak

    endorak New Member

    Joined:
    Aug 13, 2018
    Messages:
    7
    Likes Received:
    1
  8. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    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.
     
  9. endorak

    endorak New Member

    Joined:
    Aug 13, 2018
    Messages:
    7
    Likes Received:
    1
    Yes, but I have rebooted. I haven't modified the rc.local, so the link shoud not be there anymore, right?
     
  10. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    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
     
  11. endorak

    endorak New Member

    Joined:
    Aug 13, 2018
    Messages:
    7
    Likes Received:
    1
    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.
     
    waltervl likes this.

Share This Page