Thanks a lot for the answer. I followed your tips and was able to reproduce the behavior, however, my goal is to flash a single core (or just the cores separately) using the elf files. This fails.
I am able to debug the application when all the cores are grouped in a 'launch group'. This is not enough. First of all, this applies only to debugging, and the second problem is that I am not able to select only the second core and flash the board with it separately, independently of the content of the first core on the board. I need to be able to upload single cores' elfs to the board. Additionally, it is also not possible to create 'launch groups' for flashing, so I can't choose the .elf files I wish to have on the board and flash them together.
When trying to flash a single elf file onto the second core I am using these commands: 'Flash from File... ' > [debug configuration for second core ] > 'Flash' and it fails. Initially, the debugger stops at 90% at 'Configuring GDB' and after few minutes comes back with this message:
Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:7226
Error message from debugger back end:
localhost:7226: The system tried to join a drive to a directory on a joined drive.
I tried enabling the checkbox 'Launch Server Locally; in the debugger settings (at 'GDB Server Settings' field), and this results in a different error, that says:
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "49315" to 7226
PE-ERROR: Warning. Can't read registers while part is running.
PE-ERROR: Warning. Can't read memory while part is running. @0 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @11d320c (4 bytes)
Interrupt command received. Halting execution.
I don't know how to flash an .elf file onto the second core.
ps
I figured out that after changing the processor package the S32DS sets it by default to Z4_0. If you click on the 'Processor' Component and reset it to the desired core BEFORE clicking 'generate processor expert code', then all the initial settings (linker and startup files) remain as they were - divided for the multi-core functionality.