Add checkxip function for ARM uC