First specify the external ram range for RAM1 (for example) in the project Target settings dialog, and make sure all other settings are appropriate for your project.
Then in the Linker settings tab, un-check the "Use Memory Layout from Target Dialog" option. This will allow you to manually edit the scatter file which will initially reflect the layout defined in the Target settings.
Edit the scatter file to create a section in external ram thus (for example):
RW_RAM1 0x60000000 UNINIT 0x00040000 { ; RW data
*(HEAP) ; external SRAM
}
The actual addresses may differ for your part. If you want to use all external RAM for heap that is sufficient, if you want to allow the linker to place other data in this space then:
RW_RAM1 0x60000000 UNINIT 0x00040000 { ; RW data
*(HEAP) ; external SRAM
.ANY (+RW +ZI)
}
Check the map file for the HEAP section to verify that the space was allocated as required.
You can similarly relocate the stack if necessary. But be aware that the external memory access may be be slower than internal so doing so may affect performance.
All this assumes of course that you have correctly initialised the external RAM controller to match the external RAM device - this should be done in system_lpc1788.c (or the similarly named file for your start-up code - my experience is with STM32 so I don't know, perhaps system_lpc17xx.c)