Arduino Due - Atmel SAM3X8E ARM Cortex-M3 CPU


After doing a project with Arduino Due, if I need to make it work only with the Atmel SAM3X8E ARM Cortex-M3 CPU, is that possible? I know how to do it with Arduino uno and work only with the ATmega328, but now I would like to know if is possible to to the same thing with Arduino Due.


Of course it is. There are #defines for every unique board and chip. You just have to dig into the include files and figure out what the unique ones are for the Due board or SAM chip.

Ray L.

This is how the ethernet library does it.

#if defined(ARDUINO_ARCH_AVR)
  // this is for everything but the Due
  // this is for the Due