I want to make a simple program for a custom board with a SAMD21 core, without using any previously existing framework, like the arduino framework.
The code to start with is just a simple main() with two int variables that are increased and decreased.
I have an ATMEL SAM-ICE Programmer and I think I can use it to flash the compiled binaries.
What I would like to know is firstly which parameters should I Pass to the compiler (g++-arm-none-eabi) or perhaps to the linker, and secondly if I need to do something related with the bootloader, like if I need to flash a bootloader as well to the board, or how to flash the actual program without overwriting the bootloader