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:
lukaszadrapa_0-1743409795175.png
Core Z4_1 initializes next 256KB:
lukaszadrapa_1-1743409825998.png
Remaining 256KB is usually initialized by Z2 core which is not present in your project... even if it is defined in project properties:
lukaszadrapa_2-1743409933768.png
So, you put shared_memory to those last 256KB:
lukaszadrapa_3-1743410041809.png
But it's not initialized:
lukaszadrapa_4-1743410088327.png
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