Trouble uploading arduino sketch

Discussion in 'UDOO X86' started by mcgillca, Apr 19, 2018.

  1. mcgillca

    mcgillca New Member

    Joined:
    Mar 30, 2018
    Messages:
    5
    Likes Received:
    0
    HI - I've just downloaded the Arudino IDE, but am having trouble uploading a sketch.

    I dowloaded the intel curie board 2.02 and set the port to /dev/ttyACM0, but get the following errors:

    Sketch uses 48732 bytes (31%) of program storage space. Maximum is 155648 bytes.
    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


    Looking at /dev/ttyACM0 the default permissions don't allow non-root users to access this, so I changed the permissions to allow everyone to access the file, but then got the following error:

    Arduino: 1.8.5 (Linux), Board: "Arduino/Genuino 101"

    Build options changed, rebuilding all
    Sketch uses 48732 bytes (31%) of program storage space. Maximum is 155648 bytes.
    Starting download script...
    Flashing is taking longer than expected
    Try pressing MASTER_RESET button
    ERROR: Timed out waiting for Arduino 101 on /dev/ttyACM0
    ERROR: Timed out waiting for Arduino 101 on /dev/ttyACM0

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences

    Any suggestions?

    Thank you,

    Colin
     
  2. waltervl

    waltervl UDOOer

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

Share This Page