[Solve]how to upload a bin file compiled on another computer

Discussion in 'Arduino IDE' started by firehopper, Nov 25, 2013.

  1. firehopper

    firehopper Member

    Joined:
    Jun 10, 2013
    Messages:
    154
    Likes Received:
    1
    I have a bin file compiled on another computer, how do I use bossac on the udoo to send it to the sam3...

    tried ./bossac -e -w -v -b aprinter.bin -p /dev/ttymxc3

    it reports no device found on /dev/ttymxc3
     
  2. jdonavan

    jdonavan New Member

    Joined:
    Oct 28, 2013
    Messages:
    34
    Likes Received:
    0
    Re: how to upload a bin file compiled on another computer.

    I'm having the same issue trying to get a makefile put together.
     
  3. firehopper

    firehopper Member

    Joined:
    Jun 10, 2013
    Messages:
    154
    Likes Received:
    1
    Re: how to upload a bin file compiled on another computer.

    figured it out. need to enter the command exactly as it appears in the ide, but substitute the name of your bin file..

    so this is the command you need to give.

    ./bossac -i -d --port=ttymxc3 -U false -e -w -v -b nameofyourprogram.bin -R

    and it should upload!


    okay lifeboat_jim says I should explain things.. I will as best as I can.. Info from here tells me what the commands are for..

    http://www.shumatech.com/web/products/bossa

    anyway.. -i is for info. Not sure what info but thats what its for..
    -d is for debug info. thats the same as if you have it set to verbose on upload in the ide
    --port=ttymxc3 < this is the port the due is on. on our systems its ttymxc3
    -U false this is to overide something to do with usb.. not in normal bossa. and also I'm not sure if this is what it does.. so if I'm wrong, dont shoot me.

    -e is to erase.
    -w is to write.. faster if you erase and write on the same command.
    -v is to verify
    -b is to boot from rom or flash , -b 0 is rom, and -b 1 is flash. if you leave it blank.. it defaults to 1 if you dont have -b at all it boots from rom I think and your program will not run..

    -R not really sure of this, but I think its to reset the sam3 justbefore writing.

    thats all I know
     
  4. Lifeboat_Jim

    Lifeboat_Jim New Member

    Joined:
    Sep 16, 2013
    Messages:
    399
    Likes Received:
    1
    Re: [Solve]how to upload a bin file compiled on another comp

    Nice one Fire, very useful!
     
  5. jdonavan

    jdonavan New Member

    Joined:
    Oct 28, 2013
    Messages:
    34
    Likes Received:
    0
    Re: [Solve]how to upload a bin file compiled on another comp

    Ahh so the magic bit was to not include the /dev/ for the port. Go figure.
     

Share This Page