Use other configuration of ATSAMD20

Hello guys,

I've difficulties to find out ATSAMD20G18A microcontrollers due electronics supply problems, the one mounted Arduino Zero, but I've found other versions of ATSAMD20 series with different cut of memory and pinout size. Do you think is possible to port compatibility from G18A to others?

Maybe (I'm not sure at all) functions of peripherals are the same since it's same series, but pins are not. Also I don't know if there's something hard coded or maybe there can be compiling or uploading problems.

Looking for your technical opinions and, if there's, tutorials/manuals.