Pay attention to MPC5 cookbook, example 15/16:
It is applicable also to MPC5777C as it used the same eSCI module.
I am using eSCI also for printf funtionity in the base project below:
I'm afraid the example was created for GreenHills development environment - Multi.
I'd suggest you to create a new S32DS multicore project (GCC compiler) and fit the relevant code to the pre-generated multicore project structure.
Hope it helps.