This Toradex KB describes how to setup MCUXpresso SDK and Toolchain to develop on Cortex-M.
It works and I’ve been following it for several months.
I’ve just discovered that NXP has releases some new tools to help developers setting up the environment:
They work quite well and so it can be useful to mention them as an alternative way to setup the environment.