How to flash the .bin to the chip?

All design tool related questions: compiler, assembler, linker. Embedded programming questions: assembler, C code.

Moderator: nferre

50ndr33
Posts: 2
Joined: Sun Apr 06, 2014 10:41 pm

How to flash the .bin to the chip?

Sun Apr 06, 2014 10:46 pm

Hi! (I'm completely new to the world of microcontrollers, and have only used the Atmel AVR series using AVRDUDE to flash the chip.)

I've compiled the C program, and now have a .bin-file. How can this be flashed to the Atmel ATSAM3X8E? I'm using Ubuntu, and the Atmel chip is actually situated on an Arduino Due.

I've tried SAM-BA without any luck.
blue_z
Location: USA
Posts: 2094
Joined: Thu Apr 19, 2007 10:15 pm

Re: How to flash the .bin to the chip?

Mon Apr 07, 2014 2:34 am

50ndr33 wrote:the Atmel chip is actually situated on an Arduino Due.
Have you tried RTM?
IIRC the DUE has an erase function that is initiated by asserting both Reset and Erase pins (while the board is already powered up). You could then download the binary through the serial port.

Regards
50ndr33
Posts: 2
Joined: Sun Apr 06, 2014 10:41 pm

Re: How to flash the .bin to the chip?

Mon Apr 07, 2014 3:24 pm

blue_z wrote:Have you tried RTM?
Is this the Atmel Studio?

After skimming through the source of the Arduino IDE it seems they are using SAM-BA for flashing. I'll read a bit more carefully through the source (open sourced on GitHub) and try to do it like they do it. I'll post an update here when (notice the choice of word  :o ) I've figured it out, in case anyone else comes here to find a solution.

Return to “Development Tools”

Who is online

Users browsing this forum: No registered users and 3 guests