Hi,
I want to make a project in that all three cores in MPC5748G share resources using semaphore.
So I used the sema42_multicore example as a base and then put shared_mem.c, shared_fun.c from S32R274 multi-core shared memory.
And also followed the post from this forum too. Here's the link to it.
https://community.nxp.com/t5/S32-Design-Studio/How-can-i-use-the-same-variables-in-different-sub-pro...
But it seems like none of the cores can access the shared memory.
1. when I compile the project, it gives me a compile error for using a core_z7_1_counter.

If I take it out, then the project compiles normally.
2. While Debugging in flash mode, the cores cannot access to the shared memory. It falls into loop somewhere. While debugging in ram mode, the cores can access to the shared memory. What is the difference between flash mode and ram mode?
3. And while debugging in ram mode, the variables updates when other thread's suspended. I would like to know how to use sema42 properly so the variables updates while the other thread's running.
I'll attach my project here, it's divided into 2 cause of the size. (unzip (2) and (3) and unzip project.z01 and project.zip together)
Thanks