Hi @francescovico,
Thanks for your question
The suggestion is to not move the RTD RAM on D-TCM
To achieve your you goal to have enough space you could try to optimize your app, you could use as reference S32K3xx How to optimization APP code for get more high performance - NXP Community
Also, you could try the following configuration:
- Remove the "-fno-short-enums" option (Project Properties > C/C++ Build > Settings > Optimization)

- Check the "Remove unused sections" (Project Properties > C/C++ Build > Settings > Standard S32DS C Linker > Miscellaneous)

Let me know if you have more questions.