The various Cortex-M3 based micro-controller families
differ significantly
in terms of hardware peripherals
and memory – the STM32 family peripherals are completely different architecturally from the NXP family peripherals even where they have similar functionality.