please open S32 Design Studio, and click debug_RAM button, please see the figure below.
Now elf file for RAM is created. Use the debug_RAM configuration for debug.
Thank you very much! But what confuses me is that I find some deference between those project. some project can only choose Debug or Release，some can choose Debug/Debug_RAM/Release，and some project can only choose Debug_RAM or Debug_Flash. Do you know the reason？ Is this related to the SDK?