I am doing a lot of work with custom boards I've designed with the ATSAMD21G. I'd like to get away from using USB to program my boards since the USB port takes up space on the PCB and consumes extra pins. Is there any recommended way to configure the Arduino IDE to simply dump out the compiled program into a JLink debugger, much like the Atmel Studio IDE can?
2 Answers
For a one-click upload, you can make a custom hardware definition that calls any executable of your choosing.
The IDE makes a .hex file which you can then program onto your chip with a suitable programmer.