Dual core communication S32K322

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dual core communication S32K322

198 Views
Stark_
Contributor III

Hi everyone,

I have started a dual-core project where both Core 0 and Core 1 are enabled. As a test, I have created an incrementing variable on each core.
What is the recommended way to share or transfer this variable data from Core 1 to Core 0 (and vice versa)?
Any examples or best practices using shared RAM would be greatly appreciated.

microcontroller : NXPS32k322

IDE: S32 Design Studio
RTD: v3
Debugger: PEMicro


Thanks!

Tags (1)
0 Kudos
Reply
7 Replies

181 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I would recommend to use Inter-Platform Communication Framework (IPCF)

https://www.nxp.com/design/design-center/software/automotive-software-and-tools/inter-platform-commu...

Examples and trainings are included.

0 Kudos
Reply

131 Views
Stark_
Contributor III

Hi @davidtosenovjan 

According to the demo training, the IPCF Quick Start Guide includes a middleware block and driver, but they are not available in my configuration tool.

configuration as in Demo training

Stark__0-1786593975962.pngStark__0-1786593975962.png

configuration in my project

Stark__1-1786594050143.pngStark__1-1786594050143.png

 

is there any-other way to share the data between the cores ?

 

 

Tags (1)
0 Kudos
Reply

66 Views
db16122
Contributor IV

Please refer to UM12479: User Manual for S32K3 IPCF for 5.2 NXP S32 Design Studio Configuration

0 Kudos
Reply

29 Views
Stark_
Contributor III

Hi @db16122 

Without IPCF driver, dual-core can communicate in S32K322?

 

 

Tags (1)
0 Kudos
Reply

19 Views
db16122
Contributor IV

There are no direct communicated channel between two core physically.

0 Kudos
Reply

183 Views
db16122
Contributor IV

How about add two counter for each M7 core? Once the M7 is running, the counter start to count and you can check the value if it is same or not.

BTW, what is the purpose to check each core status? for safety reason?

0 Kudos
Reply

154 Views
Stark_
Contributor III
Hi @db16122
I started working on a dual-core setup and verified that Core 0 and Core 1 are running by using counters. However, my main question is: how do I pass data from Core 1 to Core 0 and vice versa? Do you have an example related to data sharing between cores?
0 Kudos
Reply