programming using bin file

Hi everybody,

I need to download a program to a Zero board, using the bin or the hex file, without having the source code that generated them.
I need to use the native USB port, not the programming port or the SWD interface.
The board has the standard Arduino Zero bootloader.

Is there any software tool that allows to do this?

Thanks in advance.
Marco

Hi Marco,

Yes, it's an application called called Bossa: GitHub - shumatech/BOSSA: BOSSA is a flash programming utility for Atmel's SAM family of flash-based ARM microcontrollers. The motivation behind BOSSA is to create a simple, easy-to-use, open source utility to replace Atmel's SAM-BA software. BOSSA is an acronym for Basic Open Source SAM-BA Application to reflect that goal..

The Arduino IDE also uses Bossa to upload binaries to your board over its native USB port, but it's working in the background.

Many thanks Martin! I will try it.

Marco

Hi Martin,

I installed Bossa on my pc win7 32 bit, using the bossa-x86-1.9.1.msi installer, but when I select the com port in the Bossa GUI the pc hangs.

As far as I understand there is a fork for Arduino here, but a windows installer is not available and I wasn't able to produce an executable file.

Instead I succeded using the bossac.exe file available in the Arduino installation: it works fine opening the emulated com port at 1200 baud, closing it, and the launching bossac.exe with the bin file as a parameter.
It works but it is a little bit clumsy.

Please can you tell me how to generate a Bossa with GUI that works with Arduino Zero and runs on Windows?

Thanks.
Marco

BOSSA does not seem support all Arduino Zero compatible chips like the ATSAMD21E15x, or ATSAMD21E17x.

Hi Marco,

I installed Bossa on my pc win7 32 bit, using the bossa-x86-1.9.1.msi installer, but when I select the com port in the Bossa GUI the pc hangs.

Have you tried downloading and running BOSSA version 1.8? : Release BOSSA 1.8 · shumatech/BOSSA · GitHub.

yes but it doesn’t work :slightly_frowning_face:

Hi Marco,

yes but it doesn't work

Are you first putting your board into bootloader mode with a double tap of the reset button, before selecting the com port?

Hi Martin,

Are you first putting your board into bootloader mode with a double tap of the reset button, before selecting the com port?

Oops ... I took for granted that bossa with GUI interface enter automatically in the bootloader, but I was wrong :-[

Anyway if I double tap the reset, Bossa can connect to my board but the programming operation cannot succeded.

Now I realize that it is not that bad to use bossac.exe (available in the zero package) from command line: I am satisfied with it !

UPDATE: it works :slight_smile: :slight_smile: I forgot to set the Flash offset to 0x2000 !

Thank you for your time ! :slight_smile:

Marco