S32k358 multicore how does it works ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32k358 multicore how does it works ?

跳至解决方案
1,620 次查看
sobo
Contributor III

Hello,

I'm new to multicore mircroprocessor and would like to have more infos on how it's works.

For example on the s32K358 with only one elf file ?
Can the 2 core (core 0 and core 2) run the same code from the same flash address ?
How the 2 cores are started ?

Is there EB tresos configuration example ?

Sophie

 

 

0 项奖励
回复
1 解答
1,604 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @sobo,

Yes, it can be done with one file only.

Regarding your question, in the two cores, the debugging is independent. You can step into one core, and the other one can be running or paused depending on the previous debug operation.

Here are some multicore examples you can look into:

The S32K324 examples includes a single project for two cores which compiled into single elf file.

Hope you find this helpful.

Best regards,
Julián.

在原帖中查看解决方案

0 项奖励
回复
11 回复数
969 次查看
preh_zhenjiang
Contributor I

Hi, @sobo 

I also encountered the same problem, can you send me a single elf project of k358?

 

Looking forward to your replay!

0 项奖励
回复
1,594 次查看
sobo
Contributor III

Hi Julian,

I will check the example.
I see that there is Application Note in the Zip with S32K324, is there new version available ? or other AN to help with multicore ?

Sophie 

0 项奖励
回复
1,584 次查看
sobo
Contributor III

Hi @Julián_AragónM 

 

Another question, I'm reading the application bote : Multi-Core Implementation in RTD of S32K3
The part 3.3.1. EcuC configuration guide.

My question is the s32k358 has 3 cores. Core 0 and core 1 as lock step and a core 2.

In the EcuC configuration with EB tresos Do we need to define the 3 cores ?

For example in the CAN  IM manual it is write that

" The Can assumes there is a single EcucPartition allocated per core. Internally, the module will use the Core ID returned by GetCoreID API to reference the appropriate global data and configuration elements."

So in the S32K358 the running core will be the Core 0 and the Core 2, so if I used the example of the application note , the EcuCoreId will not be correct if I only declared 2 cores in the ECUc module.

am I correct ?

sobo_0-1706883456224.png

 

0 项奖励
回复
1,516 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @sobo,

Yes, you are right, each core must be defined.

Best regards,
Julián.

0 项奖励
回复
1,605 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @sobo,

Yes, it can be done with one file only.

Regarding your question, in the two cores, the debugging is independent. You can step into one core, and the other one can be running or paused depending on the previous debug operation.

Here are some multicore examples you can look into:

The S32K324 examples includes a single project for two cores which compiled into single elf file.

Hope you find this helpful.

Best regards,
Julián.

0 项奖励
回复
1,531 次查看
AndreasStolze
Contributor IV

Hi @Julián_AragónM 

by chance I am currently also researching this topic.

In the first link you provided, there are 2 documents referenced:

- S32K32x Multicore Quick Start Guide
- Multi-Core Implementation in RTD of S32K3

I cannot find these documents. However, today I would look for a "S32K358 Mutlicore Quick Start Guide" as well as the RTD documentation for RTD 4.0, the post talks about the 2.0 version.

Can you provide (a link) to these documents?

Thank you
Andreas

0 项奖励
回复
1,511 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @AndreasStolze

I apologize for the inconveniences this may cause, but these projects are the latest as of now, there are no current examples for S32K358.

As for the documents you requested, you can find them through the link beneath the post:

Julin_AragnM_0-1707166096970.png

Julin_AragnM_1-1707166126394.png

Best regards,
Julián

 

 

0 项奖励
回复
1,498 次查看
AndreasStolze
Contributor IV

Hi @Julián_AragónM 

 

thanks for the update. Apparently these files are not a normal or secure NXP download, but on a sharepoint. I don't have access.

Can you provide me access or another link?

Thank you!

AndreasStolze_1-1707204213849.png

 

 

0 项奖励
回复
1,477 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @AndreasStolze,

I apologize for the misunderstanding, there is also a public package in response to the original message:

Julin_AragnM_0-1707231370760.png

 

Best regards,
Julián

0 项奖励
回复
1,392 次查看
AndreasStolze
Contributor IV

Hi @Julián_AragónM 

as I said, the download works, however, within the "Multi-Core Implementation in RTD of S32K3" document, regarding access protection, another application note is referenced (page17). However, this link points to the sharepoint again. Can you provide this app note here?

AndreasStolze_0-1707397022824.png

Thank you
Andreas

 

0 项奖励
回复
1,463 次查看
AndreasStolze
Contributor IV
Thanks, this worked!
0 项奖励
回复