Hello @rexoplans,
The 2MB of RAM refers that the microcontroller RT1172 has an internal memory of this size, where is used by the Cortex M7 to save data or instructions.
This internal memory consists of two parts that, in turn, could be configurated depending on your application. The two parts is the OCRAM (1.25Mb) and the FlexRAM (512kb +128kb shared with the Cortex M4) where both add up to 2Mb.

You can access the RAM with pointers using the memory direction of the RAM that you would use.
Also, if you experience any issue, do not hesitate to let me know.
BR
Habib.