Author Topic: Upload .bin file over Native USB  (Read 4526 times)


  • Newbie
  • *
  • Posts: 3
Upload .bin file over Native USB
« on: July 16, 2014, 12:22:57 pm »
I've been searching everywhere for any info on this, I have a customer that I would like to give my updates to via a simple bin file (so they don't have to mess with checking out my updated libraries and source) and have a simple way to upload to the DigiX.

I've tried Bossac as per many posts, and the opening of the COM port @ 1200 and then uploading but run into various errors

Code: [Select]
mode com18:1200,n,8,1,p

Status for device COM18:
    Baud:            115200
    Parity:          None
    Data Bits:       8
    Stop Bits:       1
    Timeout:         OFF
    XON/XOFF:        OFF
    CTS handshaking: ON
    DSR handshaking: ON
    DSR sensitivity: OFF
    DTR circuit:     HANDSHAKE
    RTS circuit:     HANDSHAKE

bossac.exe --port=COM18 -U false -e -w -v -b Modbus.bin -R

SAM-BA operation failed

Any other suggestions on tools that might be able to help would be great as well


  • Newbie
  • *
  • Posts: 3
Re: Upload .bin file over Native USB
« Reply #1 on: July 16, 2014, 02:27:59 pm »


  • Sr. Member
  • ****
  • Posts: 398
Re: Upload .bin file over Native USB
« Reply #2 on: July 17, 2014, 12:03:43 am »
First question: Why the "p" as last parameter??  Omit that, and you are done!

But now the problems start to grow, read:

This function only works, while an Arduino program is loaded AND running. The speed change down to 1200 is registered by a piece of the Arduino code and reachts on that with a virtual key press on ERASE and RESET.

After that, the DigiX/DUE is in BOSSA-mode and can be accessed via bossac.  BUT as the BOSSA-mode has another VID/PID it appears as a new COM-port on Windows (and sometimes in Linux as well). The uploading bossa needs to know that com port.
Arduino developers are having huge problems in detecting that port, as the Port name also changes its number, as soon, as you use another USB port on your computer.

If you read this thread:,1277.0.html you will understand some of those problems.

Right now the IDE does the following:  It scans all available COM-ports and stores those. Than it triggers the reset with 1200 baud and starts scanning COM-ports again.  That COM-port, which is appearing new after reset is chosen to be used as BOSSA-port.

That is all, you need to do on your own, as that is not part of bossac, but part of the IDE.