Ok, I expected that the elf files are up to date.
Anyway, it's caused by missing RAM initialization.
Core Z4_0 initializes first 256KB by its startup file:

Core Z4_1 initializes next 256KB:

Remaining 256KB is usually initialized by Z2 core which is not present in your project... even if it is defined in project properties:

So, you put shared_memory to those last 256KB:

But it's not initialized:

If you use debugger in S32DS, it initializes whole RAM explicitly. If you run without debugger, it will crash on bus error when accessing uninitialized RAM.
You need to ensure that also this RAM is initialized.
Regards,
Lukas