fails to upload Arduino sketch (SAM-BA operation failed)

Discussion in 'Troubleshooting' started by xaxy, Dec 26, 2013.

  1. xaxy

    xaxy New Member

    Joined:
    Dec 26, 2013
    Messages:
    5
    Likes Received:
    0
    Just got a new udoo board whit ubuntu and i try to upload the Blink example to the arduino and i get this error:

    /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
    sbrkr.c:(.text._sbrk_r+0xc): warning: undefined reference to `_sbrk'

    Sketch uses 12,252 bytes (2%) of program storage space. Maximum is 524,288 bytes.

    Inner erase and reset routine: successiful!!

    Inner erase and reset routine: successiful!!
    Erase flash
    Write 14440 bytes to flash

    [ ] 0% (0/57 pages)
    [===== ] 17% (10/57 pages)
    [========== ] 35% (20/57 pages)
    [=============== ] 52% (30/57 pages)
    [===================== ] 70% (40/57 pages)
    [========================== ] 87% (50/57 pages)
    [==============================] 100% (57/57 pages)
    Verify 14440 bytes of flash

    [ ] 0% (0/57 pages)

    SAM-BA operation failed

    I use the Arduino IDE for UDOO 1.5.4 that camed whit the official ubuntu OS.
    Anyone know the solution for this problem?
     
  2. rusty

    rusty New Member

    Joined:
    Dec 29, 2013
    Messages:
    2
    Likes Received:
    0
    I'm getting the same error. I can't even compile an empty sketch using a fresh SD image. I've tried both the Linaro Ubuntu 12.04 LTS and the Linaro Ubuntu 11.10 images.

    Anyone able to help?
     
  3. rusty

    rusty New Member

    Joined:
    Dec 29, 2013
    Messages:
    2
    Likes Received:
    0
  4. xaxy

    xaxy New Member

    Joined:
    Dec 26, 2013
    Messages:
    5
    Likes Received:
    0
  5. pavelexpertov

    pavelexpertov New Member

    Joined:
    Jun 14, 2013
    Messages:
    15
    Likes Received:
    0
    Hey, just to let you know that I had the same problem, but it appeared when I used external computer to load the sketches. To fix the issue, I did not do anything particular, it just did it itself somehow. After trying to load images on my second OS on my PC, I went back to original OS and tried to fix the problem again by re-selecting port and magick happened. However, you have to test if your board is faulty or not by using your external computer to load images. To set everything up is pretty much easy, but you got to read instructions on how to do that carefully. Otherwise, you are going to get stuck for days to try to figure out other problems. Hopefully, you will fix the issue soon.
     
  6. xaxy

    xaxy New Member

    Joined:
    Dec 26, 2013
    Messages:
    5
    Likes Received:
    0
    when i tried with another computer mouse, it works. I don't know why
     
  7. swoofer

    swoofer New Member

    Joined:
    Dec 26, 2013
    Messages:
    9
    Likes Received:
    0
    Work for me THX!
     

Share This Page