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
Solved! Go to Solution.
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
Hi Fenghua,
Did you get a sample of Acore users with multiple instances?
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
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.
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.
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
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.
Hi Teams,
Do you have any custcomer APPs translate with customer kernel modules?
Hi,
Could you elaborate more on the question?
We may not understand it fully.
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.
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.
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
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