2

I would like to write code in Arduino language, compile it in the Arduino IDE, grab the resulting binary code, and flash it to the Due via the TX/RX UART pins, bypassing both the USB Programming Port and Atmel16U2 chip. Before the UART flash, I am manually toggling the Erase and Reset pins on the Due to initiate a hard reset of the SAM3X chip, and SAM-BA now waits for the code. I would like to know: can I directly grab the binary code compiled by the Arduino IDE and give it to SAM3X via UART or is there extra code baked into that binary by the Arduino compiler that would cause this method to fail?

  • The compiled code never cares how you upload it. – Ignacio Vazquez-Abrams Dec 4 '15 at 0:18
  • My thoughts were that there could be additional code intended for the Atmel16U2 and Programming Port flash method which would have to be removed in this situation. – fillybrese Dec 4 '15 at 0:24
  • Nope, just use avrdude to upload it and you are done ;) – frarugi87 Dec 4 '15 at 11:13
  • But you can also upload it from the IDE with a serial interface of your own; you are not forced to use the 16u2 – frarugi87 Dec 4 '15 at 11:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.