Hi Yuanbin,
If you just want to run the code in the internal SRAM directly, you can define it in the .icf file.
We have some LPC18xx projects which run in the internal SRAM for your reference.
Please download the code from this link:
https://www.lpcware.com/content/nxpfile/lpc18xx-cmsis-compliant-standard-peripheral-firmware-driver-...
Take lpc18xx-2013-09-04\lpc18xx\Examples\GPIO\Gpio_Input\EWARM as an example, you can refer to the ldscript_irsam_iar.icf file.

Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------