IPCF of S32G274

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IPCF of S32G274

Jump to solution
2,972 Views
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 Kudos
Reply
1 Solution
2,894 Views
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

 

 

View solution in original post

0 Kudos
Reply
12 Replies
2,277 Views
jiahaisheng
Contributor I

Hi Fenghua,

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

0 Kudos
Reply
2,923 Views
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 Kudos
Reply
2,909 Views
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 Kudos
Reply
2,962 Views
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 Kudos
Reply
2,882 Views
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 Kudos
Reply
2,870 Views
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 Kudos
Reply
2,853 Views
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 Kudos
Reply
2,845 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Could you elaborate more on the question?

We may not understand it fully.

0 Kudos
Reply
2,958 Views
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 Kudos
Reply
2,953 Views
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 Kudos
Reply
2,902 Views
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 Kudos
Reply
2,895 Views
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 Kudos
Reply