Go Down

Topic: programming using bin file (Read 6214 times) previous topic - next topic

Sulimarco

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

MartinL

Hi Marco,

Yes, it's an application called called Bossa: https://github.com/shumatech/BOSSA.

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

Sulimarco

#2
Oct 25, 2019, 11:32 am Last Edit: Oct 25, 2019, 11:39 am by Sulimarco
Many thanks Martin! I will try it.

Marco

Sulimarco

#3
Dec 31, 2019, 07:02 pm Last Edit: Jan 03, 2020, 02:01 am by Sulimarco
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

2n3904

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

MartinL

#5
Jan 14, 2020, 11:39 am Last Edit: Jan 14, 2020, 11:39 am by MartinL
Hi Marco,

Quote
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? : https://github.com/shumatech/BOSSA/releases/tag/1.8.

Sulimarco


MartinL

Hi Marco,

Quote
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?

Sulimarco

#8
Today at 12:05 am Last Edit: Today at 12:30 am by Sulimarco
Hi Martin,

Quote
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  :)  :)  I forgot to set the Flash offset to 0x2000 !


Thank you for your time ! :)

Marco

Go Up