Has anyone tried to port the sample demo codes for SAMD20 Xplained Pro, on a SAMD21 Xplained Pro? I am thinking of buying a SAMD21, rather than SAMD20 due to additional feature like USB.
This should not be a problem. You would have to ensure the right part was selected in the project to ensure the memory map was defined correctly, and you may find LEDs are wired on different IO ports, but no much else.