Hi,
Pls refer to the MCUXpresso_IDE_User_Guide.pdf located at:
C:\nxp\MCUXpressoIDE_11.7.0_9174_prc
read the section 17.13.5 Placing specific functions into RAM Blocks

Of couse, it is tools by tools, the method is only for MCUXPresso tools. For Keil or IAR, pls read corresponding doc.
Hope it can help you
BR
Xiangjun Rong