programming on the atmel SAM3X8E

Discussion in 'Arduino IDE' started by kloesa, Feb 2, 2014.

  1. kloesa

    kloesa New Member

    Joined:
    Jan 15, 2014
    Messages:
    10
    Likes Received:
    0
    Hello,

    I found something weird when I tried to program the µC embedded on the udoo board.
    First of all, I downloaded the last IDE on arduino website and the patch on udoo.
    Then I have unplugged the J18 and plug my mini usb on CN16.
    In addition, I choose the due board (programming port) and I can see that my board is correctly recognized by my IDE (COM3).
    So, normally, I can download my sketch directly from my own PC to the board.
    I tried to do blink a led, with a right code (no errors), but nothing happens.
    Am I wrong?

    Best regards
     
  2. EchoWarp

    EchoWarp New Member

    Joined:
    Feb 3, 2014
    Messages:
    11
    Likes Received:
    0
    Let me run by some options:

    Can you read any serial?
    Serial.begin(9600)
    Serial.println("HELLO")

    will show up in the Arduino's serial console.

    Are you trying to use a built-in LED? I don't think the Udoo has one.

    Do you have the LED backwards? it's an easy mistake to make.
     
  3. kloesa

    kloesa New Member

    Joined:
    Jan 15, 2014
    Messages:
    10
    Likes Received:
    0
    Thank you for your help.
    Everything was ok but it didn't work, and when I powered up my board two days later, it was good.
    So , now I can manage my differents led (no built-in) as I want.

    However, you mentionned the serial, so how can I do to use the Arduino's serial console?
     
  4. EchoWarp

    EchoWarp New Member

    Joined:
    Feb 3, 2014
    Messages:
    11
    Likes Received:
    0
    If your Arduino IDE is already set up to upload to the sam3x, all you have to do is hit the magnifying glass in the top right corner to open the console. The serial is sent on the same connection as the programming. This is true if you're programming from the udoo or an external computer. Make sure the baud rate is the same as what you use in your sketch in Serial.begin( ... ) and just use Serial.println() wherever.
     
  5. Itachi

    Itachi New Member

    Joined:
    Jun 14, 2015
    Messages:
    10
    Likes Received:
    0
    Hello,
    I got UDOO Quad. I am trying to program it externally using PC(windows 8.1) using Arduino IDE(version 1.5.4). I did patch up and connected UDOO(CN6) to my PC using micro usb with J18 unplugged.When I try to upload basic Blink code it is displaying the error "SAM-BA operation failed".
    Capture.PNG

    When i deleted the cygwin1.dll file from" C:\Program Files (x86)\Arduino\hardware\tools " and trying to upload the code it is not displaying the errors but the code is not uploading.
    Capture1.PNG
     
  6. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Hi there Itachi,
    what OS are you using?
     
  7. Itachi

    Itachi New Member

    Joined:
    Jun 14, 2015
    Messages:
    10
    Likes Received:
    0
    Windows 8.1 in PC and UDOObuntu in UDOO Quad
     
    Last edited: Jun 15, 2015

Share This Page