How the two processors communicate with eRPC ?

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

How the two processors communicate with eRPC ?

跳至解决方案
3,344 次查看
malo_mabon
Contributor I

Hello,

I would like to know how the two processors (core0 and core1) can exchange data with erpc in the lpc55s6x. Which peripherical (RAM, UART, etc.) is used? At what rate?

Thanks in advance for your answer.

Best Regards,

Malo

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
3,204 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Malo

In SDK erpc sample I referred,  uses the shared memory for data exchange. The shared memory region is defined and the size can be adjustable in the linker file. The shared memory region start address and the size have to be defined in linker file for each core equally. The shared memory start address is then exported from the linker to the application. Specifically, if you check the linker file of the demo code, both core0 and core1 define a shared memory "rpmsg_sh_mem" at address 0x20031800, length 0x1800. this range of RAM can be accessed by both core0 and core1. then multicore manager component is needed.

 I only know this article including the instruction of shared memory usage. It's simple and readable. 

LPC55xx Multicore Applications with MCUXpresso IDE 

Have a great day,
Jun Zhang

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------

在原帖中查看解决方案

6 回复数
3,204 次查看
malo_mabon
Contributor I

Thank you for the answer.

Have a great day,

Malo

0 项奖励
回复
3,204 次查看
malo_mabon
Contributor I

Yes I already read the example code and I think I know how to use the #erpc and rpmsg thanks to the example codes but the codes are quite high level and my question is more on a lower level (physical level). Is it use a shared RAM memory to exchange data between the two cores? Does this exchange of data is fast?

0 项奖励
回复
3,205 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Malo

In SDK erpc sample I referred,  uses the shared memory for data exchange. The shared memory region is defined and the size can be adjustable in the linker file. The shared memory region start address and the size have to be defined in linker file for each core equally. The shared memory start address is then exported from the linker to the application. Specifically, if you check the linker file of the demo code, both core0 and core1 define a shared memory "rpmsg_sh_mem" at address 0x20031800, length 0x1800. this range of RAM can be accessed by both core0 and core1. then multicore manager component is needed.

 I only know this article including the instruction of shared memory usage. It's simple and readable. 

LPC55xx Multicore Applications with MCUXpresso IDE 

Have a great day,
Jun Zhang

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------

3,204 次查看
malo_mabon
Contributor I

I already read this AN and I didn't found how the erpc‌ make the two cores exchange data and, especially, at which rate on the LPC55xx/LPC55Sxx.

0 项奖励
回复
3,204 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Malo

There are 3 eRPC LPCXpresso55s69 SDK\boards\lpcxpresso55s69\multicore_examples

pastedImage_1.png

Hope this can help you.

Have a great day,
Jun Zhang

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------

0 项奖励
回复
3,204 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

I suggest you refer this AN about LPC55xx/LPC55Sxx Dual Core Communication.  

https://www.nxp.com/docs/en/application-note/AN12335.pdf 

Have a great day,
Jun Zhang

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------

0 项奖励
回复