Programming Nexus arduino board without the arduino IDE

Hello everybody,

i would like to upload my .hex program without the use of the Arduino IDE. So basically I used avrdude :

avrdude -pm328 -carduino -P/dev/ttyUSB0 -Uflash:w:build2566730906525817719.tmp/Blink.cpp.hex:a

But it doesnt work because i got the standard message : avrdude: stk500_recv(): programmer is not responding

If I upload the same blink example by using the arduino IDE with board choice ( arduino duemilanove or nano w/ Atmega328 ) the uploading is done perfectly!

Arduino Ide should certainly uses specifics option on target Atmega328 How can I see the comand line executed by the arduino IDE ?

Thanks

File:Preferences, turn on Verbose output for Uploads.
You can see what commands are being used.

Thanks!

I added the following lines on the Preferences.txt file :

  • build.verbose=true
  • upload.verbose=true

Or, you could just select File:Preferences in the IDE, and click on the boxes....