how do you setup shared memory between cores for MPC5775k or S32R247

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

how do you setup shared memory between cores for MPC5775k or S32R247

跳至解决方案
1,751 次查看
adrianonea
Contributor III

I am not using any OS. Also any other king of inter core communications examples or libraries are welcome.

标签 (1)
0 项奖励
1 解答
1,432 次查看
martin_kovar
NXP Employee
NXP Employee

Hi,

please look at the following example. It shows, how to set linker file for multi-core project with shared memory.

https://community.nxp.com/docs/DOC-329941 

If you have any other questions, please feel free to write me back.

Regards,

Martin

在原帖中查看解决方案

7 回复数
1,432 次查看
adrianonea
Contributor III

Thank I have configured the launch group as suggested and I get an error complaining about not being able to find the .elf file for core 2. The .elf file is in the directory. I have attached the error screen and config screen.

LaunchGroupError.JPG

0 项奖励
1,432 次查看
martin_kovar
NXP Employee
NXP Employee

Hi,

this issue could be caused by incorrect paths. Please open Run configuration and click MPC5775K-Semaphores-S32DS...

Now change the relative path to additional elf for absolute path. So instead of ${workspace_loc}/MPC5775K..... use absolute path with location of your elf file and click Apply.

pastedImage_1.png

Just to make sure, close S32DS and start it again. Please let me know if it helps.

Regards,

Martin

0 项奖励
1,432 次查看
adrianonea
Contributor III

Imported successfully thank you very much. 

Added an #include <string.h> to get rid of one of the warnings.

Compiled and get two separate .efl files one for each core.

S32DS and Multilink-Universal FX only let me upload and debug one .elf file.

1. Is there a way/setting that creates one .elf or merges the two files into one?

2. Is there a way I can load or use both .elf files?

0 项奖励
1,432 次查看
martin_kovar
NXP Employee
NXP Employee

Hi,

if you want to load two (or more) .elf file using Multilink and S32DS, there is simple feature. Build your project, click on the arrow next to the Debug icon and choose  TheNameOfYourProject_LaunchGroup.

pastedImage_3.png

It will load all .elf file from your project to the microcontroller. If you want to modify LaunchGroup configuration, click Run Configuration and there are some options you can choose for the configuration.

If you have any other questions, please feel free to write me back.

Regards,

Martin

0 项奖励
1,433 次查看
martin_kovar
NXP Employee
NXP Employee

Hi,

please look at the following example. It shows, how to set linker file for multi-core project with shared memory.

https://community.nxp.com/docs/DOC-329941 

If you have any other questions, please feel free to write me back.

Regards,

Martin

1,432 次查看
adrianonea
Contributor III

Thank you Martin. 

1. I assume the linker files have been modified manually and there is no IDE feature to do that. Is that correct?

2. How do I load/import the example in S32DS. Apologies for the newbie question. If there is any user manual happy to read it.

0 项奖励
1,432 次查看
martin_kovar
NXP Employee
NXP Employee

Hi,

1) Yes, linker file has to be modify manually. there is no feature in IDE.

2) You do not have to apologize for your question. I searched some manuals and there so not any description how to import project, but it is not difficult. 

At first start Design Studio, click File and choose Import.

pastedImage_1.png 

Click General, choose Existing Projects into Workspace and click Next.

pastedImage_2.png

Select the path to the project you want to import. You can also copy the project to your workspace. Click Finish.

pastedImage_3.png

Now the project is imported and you work with it.

If you have any other questions, please feel free to write me back.

Regards,

Martin

0 项奖励