IPCF of S32G274

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,977件の閲覧回数
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,899件の閲覧回数
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,282件の閲覧回数
jiahaisheng
Contributor I

Hi Fenghua,

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

0 件の賞賛
返信
2,928件の閲覧回数
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,914件の閲覧回数
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,967件の閲覧回数
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,887件の閲覧回数
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,875件の閲覧回数
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,858件の閲覧回数
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,850件の閲覧回数
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Could you elaborate more on the question?

We may not understand it fully.

0 件の賞賛
返信
2,963件の閲覧回数
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,958件の閲覧回数
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,907件の閲覧回数
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,900件の閲覧回数
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 件の賞賛
返信