[S32R294] Is there any official inter-process communication's example on SDK?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[S32R294] Is there any official inter-process communication's example on SDK?

ソリューションへジャンプ
754件の閲覧回数
Gordon_Yang
Contributor III

Because I would like to use IPC on s32r294 between Z4 and two Z7s, is there any official inter-process communication's example on SDK for this?

Or any other chipsets' example could be found? Thanks.

0 件の賞賛
1 解決策
732件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Gordon,

there's no such example but you can take a look at this thread:

https://community.nxp.com/t5/MPC5xxx/MPC5748G-dual-core-projects-only-work-when-using-the-first-and/...

You can see there how to create shared segment in the linker files. Just make sure that the segment is initialized due to ECC by startup files. Startup files use symbols from linker file to know the start address and size of RAM. Each core then initializes own RAM area. You can change the symbols in linker file for boot core to initialize also this shared segment.

Next point - I recommend to configure shared RAM as cache inhibited. This can be done by SMPU. You can find SW example for SMPU here:

c:\NXP\S32DS_Power_v2.1\S32DS\software\S32_SDK_S32R294_RTM_1.0.0\examples\S32R294\driver_examples\system\smpu_protection\

And if it is necessary to ensure data coherency, you can use semaphores:

c:\NXP\S32DS_Power_v2.1\S32DS\software\S32_SDK_S32R294_RTM_1.0.0\examples\S32R294\driver_examples\system\sema42_multicore\

Regards,

Lukas

 

元の投稿で解決策を見る

2 返答(返信)
733件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Gordon,

there's no such example but you can take a look at this thread:

https://community.nxp.com/t5/MPC5xxx/MPC5748G-dual-core-projects-only-work-when-using-the-first-and/...

You can see there how to create shared segment in the linker files. Just make sure that the segment is initialized due to ECC by startup files. Startup files use symbols from linker file to know the start address and size of RAM. Each core then initializes own RAM area. You can change the symbols in linker file for boot core to initialize also this shared segment.

Next point - I recommend to configure shared RAM as cache inhibited. This can be done by SMPU. You can find SW example for SMPU here:

c:\NXP\S32DS_Power_v2.1\S32DS\software\S32_SDK_S32R294_RTM_1.0.0\examples\S32R294\driver_examples\system\smpu_protection\

And if it is necessary to ensure data coherency, you can use semaphores:

c:\NXP\S32DS_Power_v2.1\S32DS\software\S32_SDK_S32R294_RTM_1.0.0\examples\S32R294\driver_examples\system\sema42_multicore\

Regards,

Lukas

 

722件の閲覧回数
Gordon_Yang
Contributor III

Hi Lukas,

Thanks for your suggestion.

 

Sincerely,

Gordon.

 

0 件の賞賛