Hi Martin,
Thank you for your answer.
The S32 Design Studio is used. But I just create one project with single core.
I have edited the startup.s file. In the file, the core_id register is used to differentiate z4a core and z4b core.
When z4b core executes, it will skip the RAM initialization, data copy from loaded rom to ram .....
It only load it r2/r13 with the same value as that in z4a core. While the stack is different from z4a's.
In the main function, it will skip initialize interrupt controller and all other things which are already initialized by z4a.
So, z4b should have worked. Logically speaking, there is no problem.
Via this way, the compiler is cheated and one can maintain one source file project, not separately into 2.
In Hightec Compiler, it works fine. One may argue that 2 different CC will may generate different elf files.
However, the s-record file is used instead of elf file. So In Hightec Compiler( GUN CC same to S32 DS),
elf and s19 file both works.
In S32 DS, elf and s19 neither work.
BR
Charlin