IPCF of S32G274

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

IPCF of S32G274

跳至解决方案
2,967 次查看
fenghua_jiang
Contributor IV

HI Team,

https://source.codeaurora.org/external/autobsps32/ipcf/ipc-shm-us  ipcf User-space Driver

The IPCF provide example with RTD drivers is single.

Do you have multi-instance?

 

regards,

jiang

0 项奖励
回复
1 解答
2,889 次查看
fenghua_jiang
Contributor IV

Hello Daniel,

  ipc-shm banch:release/bsp32.0

  ipc-shm-us branch: release/bsp32.0

 

Run sample and then specify the number of ping messages to be exchanged with peer when prompte:

./ipc-shm-sample.elf

exit the sample, input number of messages 0 or send interrupt signal (e.g. Ctrl + C)

then ./ipc-shm-sample.elf

ipc-shm-us-lib: ipc_buf_pool_init(): Unable to init queue with free buffer descriptors for pool 0 of channel 2

so, the demo only run one.

regards,

jiang

 

 

在原帖中查看解决方案

0 项奖励
回复
12 回复数
2,272 次查看
jiahaisheng
Contributor I

Hi Fenghua,

      Did you get a sample of Acore users with multiple instances?

0 项奖励
回复
2,918 次查看
fenghua_jiang
Contributor IV

Hi Daniel,

    Thank you for your reply.

    In order to compile the shared memory sample application with polling support, the makefile parameter POLLING must be set to yes.

   #ifdef POLLING
#define INTER_CORE_TX_IRQ IPC_IRQ_NONE
#else
#define INTER_CORE_TX_IRQ 2u
#endif /* POLLING */
#define INTER_CORE_RX_IRQ 1u

when I set INTER_CORE_RX_IRQ to IPC_IRQ_NONE, the test is failed.

How to receive msgs with polling support?

regards,

jiang

  

   

0 项奖励
回复
2,904 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

What BSP/RTD/IPCF/IDE version are you using?

We understand you are using your own implementation on polling mode, are you not using config tools for this configuration?

When you say "...the test is failed.", what it happens? Are you using the poll functions provided on the IPCF firmware?

Please, let us know.

0 项奖励
回复
2,957 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

There is a multi-instance example provided for the IPCF Firmware (IPCF_Example_multi_instance_S32G274_M7_0 and IPCF_Example_multi_instance_S32G274_M7_1) under the IPCF v4.6.0.

Is this what you were looking for?

Please, let us know.

0 项奖励
回复
2,877 次查看
fenghua_jiang
Contributor IV

Hi Daniel,

   What you said is M7 core codes,but I want all code about A53 core.

   https://source.codeaurora.org/external/autobsps32/ipcf/ipc-shm/

 The source  code of IPCF for Linux drivers is published.
   https://source.codeaurora.org/external/autobsps32/ipcf/ipc-shm-us/

   The source code of IPCF for Linux user-space drivers is published.

I have some questions about the codes.

regards,

jiang

0 项奖励
回复
2,865 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We understand you want to run polling mode on linux and say you have questions, what are your questions?

Are the questions related to the following case?

IPCF kernel driver of S32g274 - NXP Community

Please, let us know.

0 项奖励
回复
2,848 次查看
fenghua_jiang
Contributor IV

Hi Teams,

  Do you have any custcomer APPs translate with customer kernel modules?

Screenshot from 2023-02-03 15-23-53.png

0 项奖励
回复
2,840 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Could you elaborate more on the question?

We may not understand it fully.

0 项奖励
回复
2,953 次查看
fenghua_jiang
Contributor IV

Hi Daniel,

IPCF_Example_multi_instance_S32G274_M7_0 is the firmware of M7.

what I need is user-space driver for A53 with multi instances.

0 项奖励
回复
2,948 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Thanks for the information.

We could recommend following the AN13750 in which the "...following steps shows how to build an IPC multiple instance example on Linux." [Page 5, AN13750 - Enabling Multicore Application on S32G2 using S32G2 Platform Software Integration, Rev. 0, 11/2022].

Please, let us know if this information was helpful or not.

0 项奖励
回复
2,897 次查看
fenghua_jiang
Contributor IV

Hi Daniel,

Thank you for your reply.

In order to compile the shared memory sample application with polling support, the makefile parameter POLLING must be set to yes.

#ifdef POLLING
#define INTER_CORE_TX_IRQ IPC_IRQ_NONE
#else
#define INTER_CORE_TX_IRQ 2u
#endif /* POLLING */
#define INTER_CORE_RX_IRQ 1u

when I set INTER_CORE_RX_IRQ to IPC_IRQ_NONE, the test is failed.

How to receive msgs with polling support?

regards,

jiang

0 项奖励
回复
2,890 次查看
fenghua_jiang
Contributor IV

Hello Daniel,

  ipc-shm banch:release/bsp32.0

  ipc-shm-us branch: release/bsp32.0

 

Run sample and then specify the number of ping messages to be exchanged with peer when prompte:

./ipc-shm-sample.elf

exit the sample, input number of messages 0 or send interrupt signal (e.g. Ctrl + C)

then ./ipc-shm-sample.elf

ipc-shm-us-lib: ipc_buf_pool_init(): Unable to init queue with free buffer descriptors for pool 0 of channel 2

so, the demo only run one.

regards,

jiang

 

 

0 项奖励
回复