Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to program the Arduino Due without the Arduino IDE? Is there a standalone program that can be downloaded, and be used to upload a .bin file (which has already been generated from the arduino IDE) to the Due? Any guidance appreciated.

I read about SAM-BA programmer, downloaded it but double clicking the .exe file does nothing. Something seems to open but it disappers.

share|improve this question

The standalone program for most arduinos is avrdude: http://www.nongnu.org/avrdude/

However, for the Due, it is BOSSA:

Unlike other Arduino boards which use avrdude for uploading, the Due relies on bossac. -- Arduino Due Overview

share|improve this answer
    
thanks. Do you know if this one can upload the code via the native USB port? or does it need to have a jtag port? – aVC Mar 8 at 3:23
    
It can use the USB port. avrdude is the program the IDE uses to do its stuff. – Dave X Mar 8 at 4:07
    
Err… are you sure it's avrdude? The DUE features a SAMX ARM microprocessor, not an AVR. – zmo Mar 8 at 12:54
1  
I was wrong. Edited. – Dave X Mar 8 at 17:17

Usually when on opening a program you get a console that pops on, it means that this program is meant for commandline usage and not CLI.

You should open a terminal, cd in the downloaded .exe directory, and then type that tool's name. You might want to try adding --help after the program's name to learn how to use it.

Another good idea is to look at what Arduino does by clicking on the verbose option in the preferences. Then you'll be able to copy/paste the command call and modify it to upload the firmware blob you want.

Finally, if you look up "AVR SAMX upload tool windows" on google you might find a GUI wrapper for the command line tool.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.