S32G-VNP-RDB3 IPCF communication Error

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

S32G-VNP-RDB3 IPCF communication Error

Jump to solution
900 Views
Kulkarni_v
Contributor II

I am working on Goldbox S32G-VNP-RDB3
I am using Linux BSP 40 downloaded from the software center
and using the following version of IPCF, RTD and FreeRTOS
NXP RTD 4.0.2_P04 D2312
NXP RTOS 0.4.0 D2309
FreeRTOS 4.0.2 D2306
NXP Linux BSP40 D2403

And used the following commands

# 1. Disable data cache
=> dcache off

# 2. Clear IPCF shared memory
=> mw.q 0x34100000 0x0 0x40000

# 3. Load M7 binary from SD card into temporary DDR
=> fatload mmc 0:1 0x80000000 IPCF_FreeRTOS_S32G399A_M7_0.bin

# 4. Copy firmware to M7 SRAM
=> cp.b 0x80000000 0x34300000 0x300000

# 5. Start M7 core at vector address
=> startm7 0x34500400

# 6. Boot Linux normally (if not already)
=> boot

# 1. Mount boot partition (optional, verify M7 binary)
mkdir -p /mnt/s32g_boot
mount /dev/mmcblk0p1 /mnt/s32g_boot
ls /mnt/s32g_boot
# Should see: IPCF_FreeRTOS_S32G399A_M7_0_1_2.bin

# 2. Load IPCF Linux kernel modules
insmod /lib/modules/$(uname -r)/extra/ipc-shm-dev.ko
insmod /lib/modules/$(uname -r)/extra/ipc-shm-sample.ko

# 3. Verify modules
lsmod | grep ipc

# 4. Clear previous ping (optional)
echo 0 > /sys/kernel/ipc-shm-sample/ping

# 5. Test IPCF communication (channel 0)
echo 10 > /sys/kernel/ipc-shm-sample/ping

# 6. Monitor kernel messages
dmesg | tail -20 | grep -i ipc
But getting an error of
root@s32g399ardb3:~# dmesg | tail -20 | grep -i ipc
[ 81.689010] ipc-shm-sample: starting demo...
[ 81.689029] ipc-shm-sample: ch 0 >> 19 bytes: SENDING MESSAGES: 0
[ 91.808767] ipc-shm-sample: starting demo...
[ 91.808771] ipc-shm-sample: ch 0 >> 20 bytes: SENDING MESSAGES: 10
[ 91.808778] ipc-shm-sample: send_data_msg(): failed to get buffer for channe2

Please guide which versions of different software and Linux BSP I should use for my board

0 Kudos
Reply
1 Solution
792 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Kulkarni_v 

Thanks for your reply.

From the information you share, you are using 4.10 on M core side, but using default images in BSP40 on A core side.

By default, the IPCF images in BSP40 is not the 4.10 version, so the code on both side does not match.

As a result, the following method may solve your issue:

1. Manually build IPCF 4.10 images on BSP40, and use it to communicate with M core side you had built.

2. Another way is to build IPCF4.9 on your M core side, and then use the default images in BSP40 to communicate.

You may choose either of the methods provided according to your own requirements.

 

BR

Chenyin

View solution in original post

0 Kudos
Reply
6 Replies
844 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Kulkarni_v 

Thanks for your reply,

I feel sorry that still I do not see the IPCF version you used on M core side, the IPCF version may like the following:

chenyin_h_0-1760065816841.png

Thanks

 

BR

Chenyin

0 Kudos
Reply
821 Views
Kulkarni_v
Contributor II

@chenyin_h 

Yes I am using IPCF version 4.10.10Screenshot 2025-10-10 225736.png

 

0 Kudos
Reply
793 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Kulkarni_v 

Thanks for your reply.

From the information you share, you are using 4.10 on M core side, but using default images in BSP40 on A core side.

By default, the IPCF images in BSP40 is not the 4.10 version, so the code on both side does not match.

As a result, the following method may solve your issue:

1. Manually build IPCF 4.10 images on BSP40, and use it to communicate with M core side you had built.

2. Another way is to build IPCF4.9 on your M core side, and then use the default images in BSP40 to communicate.

You may choose either of the methods provided according to your own requirements.

 

BR

Chenyin

0 Kudos
Reply
697 Views
Kulkarni_v
Contributor II

Hello@chenyin_h 
    Thank you for your continuous support. I tried with the M-core side build for version 4.9.0, along with the Linux BSP 40 downloaded from the NXP software download, and it worked as expected.

0 Kudos
Reply
871 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Kulkarni_v 

Thanks for your post.

1. Which version IPCF you are using for building the M core binaries?

2. Have you build the IPCF A core side manually or directly using the IPCF modules existed in BSP 40 rootfs?

 

BR

Chenyin

0 Kudos
Reply
865 Views
Kulkarni_v
Contributor II

Screenshot 2025-09-30 125831.png

 

At M-core side I have used above versions and I am using BSP40 downloaded from software support(https://nxp.flexnetoperations.com/control/frse/download?agree=Accept&element=3993158). I have not built it separately.

shared image (1).jpg

 

shared image.jpg

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2181634%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32G-VNP-RDB3%20IPCF%20communication%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2181634%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20working%20on%20Goldbox%20S32G-VNP-RDB3%3CBR%20%2F%3EI%20am%20using%20Linux%20BSP%2040%20downloaded%20from%20the%20software%20center%3CBR%20%2F%3Eand%20using%20the%20following%20version%20of%20IPCF%2C%20RTD%20and%20FreeRTOS%3CBR%20%2F%3ENXP%20RTD%204.0.2_P04%20D2312%3CBR%20%2F%3ENXP%20RTOS%200.4.0%20D2309%3CBR%20%2F%3EFreeRTOS%204.0.2%20D2306%3CBR%20%2F%3ENXP%20Linux%20BSP40%20D2403%3C%2FP%3E%3CP%3EAnd%20used%20the%20following%20commands%3C%2FP%3E%3CP%3E%23%201.%20Disable%20data%20cache%3CBR%20%2F%3E%3D%26gt%3B%20dcache%20off%3C%2FP%3E%3CP%3E%23%202.%20Clear%20IPCF%20shared%20memory%3CBR%20%2F%3E%3D%26gt%3B%20mw.q%200x34100000%200x0%200x40000%3C%2FP%3E%3CP%3E%23%203.%20Load%20M7%20binary%20from%20SD%20card%20into%20temporary%20DDR%3CBR%20%2F%3E%3D%26gt%3B%20fatload%20mmc%200%3A1%200x80000000%20IPCF_FreeRTOS_S32G399A_M7_0.bin%3C%2FP%3E%3CP%3E%23%204.%20Copy%20firmware%20to%20M7%20SRAM%3CBR%20%2F%3E%3D%26gt%3B%20cp.b%200x80000000%200x34300000%200x300000%3C%2FP%3E%3CP%3E%23%205.%20Start%20M7%20core%20at%20vector%20address%3CBR%20%2F%3E%3D%26gt%3B%20startm7%200x34500400%3C%2FP%3E%3CP%3E%23%206.%20Boot%20Linux%20normally%20(if%20not%20already)%3CBR%20%2F%3E%3D%26gt%3B%20boot%3C%2FP%3E%3CP%3E%23%201.%20Mount%20boot%20partition%20(optional%2C%20verify%20M7%20binary)%3CBR%20%2F%3Emkdir%20-p%20%2Fmnt%2Fs32g_boot%3CBR%20%2F%3Emount%20%2Fdev%2Fmmcblk0p1%20%2Fmnt%2Fs32g_boot%3CBR%20%2F%3Els%20%2Fmnt%2Fs32g_boot%3CBR%20%2F%3E%23%20Should%20see%3A%20IPCF_FreeRTOS_S32G399A_M7_0_1_2.bin%3C%2FP%3E%3CP%3E%23%202.%20Load%20IPCF%20Linux%20kernel%20modules%3CBR%20%2F%3Einsmod%20%2Flib%2Fmodules%2F%24(uname%20-r)%2Fextra%2Fipc-shm-dev.ko%3CBR%20%2F%3Einsmod%20%2Flib%2Fmodules%2F%24(uname%20-r)%2Fextra%2Fipc-shm-sample.ko%3C%2FP%3E%3CP%3E%23%203.%20Verify%20modules%3CBR%20%2F%3Elsmod%20%7C%20grep%20ipc%3C%2FP%3E%3CP%3E%23%204.%20Clear%20previous%20ping%20(optional)%3CBR%20%2F%3Eecho%200%20%26gt%3B%20%2Fsys%2Fkernel%2Fipc-shm-sample%2Fping%3C%2FP%3E%3CP%3E%23%205.%20Test%20IPCF%20communication%20(channel%200)%3CBR%20%2F%3Eecho%2010%20%26gt%3B%20%2Fsys%2Fkernel%2Fipc-shm-sample%2Fping%3C%2FP%3E%3CP%3E%23%206.%20Monitor%20kernel%20messages%3CBR%20%2F%3Edmesg%20%7C%20tail%20-20%20%7C%20grep%20-i%20ipc%3CBR%20%2F%3EBut%20getting%20an%20error%20of%3CBR%20%2F%3Eroot%40s32g399ardb3%3A~%23%20dmesg%20%7C%20tail%20-20%20%7C%20grep%20-i%20ipc%3CBR%20%2F%3E%5B%2081.689010%5D%20ipc-shm-sample%3A%20starting%20demo...%3CBR%20%2F%3E%5B%2081.689029%5D%20ipc-shm-sample%3A%20ch%200%20%26gt%3B%26gt%3B%2019%20bytes%3A%20SENDING%20MESSAGES%3A%200%3CBR%20%2F%3E%5B%2091.808767%5D%20ipc-shm-sample%3A%20starting%20demo...%3CBR%20%2F%3E%5B%2091.808771%5D%20ipc-shm-sample%3A%20ch%200%20%26gt%3B%26gt%3B%2020%20bytes%3A%20SENDING%20MESSAGES%3A%2010%3CBR%20%2F%3E%5B%2091.808778%5D%20ipc-shm-sample%3A%20send_data_msg()%3A%20failed%20to%20get%20buffer%20for%20channe2%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20guide%20which%20versions%20of%20different%20software%20and%20Linux%20BSP%20I%20should%20use%20for%20my%20board%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2184854%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G-VNP-RDB3%20IPCF%20communication%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2184854%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24163%22%20target%3D%22_blank%22%3E%40chenyin_h%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Thank%20you%20for%20your%20continuous%20support.%20I%20tried%20with%20the%20M-core%20side%20build%20for%20version%204.9.0%2C%20along%20with%20the%20Linux%20BSP%2040%20downloaded%20from%20the%20NXP%20software%20download%2C%20and%20it%20worked%20as%20expected.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2184148%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G-VNP-RDB3%20IPCF%20communication%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2184148%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F255175%22%20target%3D%22_blank%22%3E%40Kulkarni_v%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20reply.%3C%2FP%3E%0A%3CP%3EFrom%20the%20information%20you%20share%2C%20you%20are%20using%204.10%20on%20M%20core%20side%2C%20but%20using%20default%20images%20in%20BSP40%20on%20A%20core%20side.%3C%2FP%3E%0A%3CP%3EBy%20default%2C%20the%20IPCF%20images%20in%20BSP40%20is%20not%20the%204.10%20version%2C%20so%20the%20code%20on%20both%20side%20does%20not%20match.%3C%2FP%3E%0A%3CP%3EAs%20a%20result%2C%20the%20following%20method%20may%20solve%20your%20issue%3A%3C%2FP%3E%0A%3CP%3E1.%20Manually%20build%20IPCF%204.10%20images%20on%20BSP40%2C%20and%20use%20it%20to%20communicate%20with%20M%20core%20side%20you%20had%20built.%3C%2FP%3E%0A%3CP%3E2.%20Another%20way%20is%20to%20build%20IPCF4.9%20on%20your%20M%20core%20side%2C%20and%20then%20use%20the%20default%20images%20in%20BSP40%20to%20communicate.%3C%2FP%3E%0A%3CP%3EYou%20may%20choose%20either%20of%20the%20methods%20provided%20according%20to%20your%20own%20requirements.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2184017%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G-VNP-RDB3%20IPCF%20communication%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2184017%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24163%22%20target%3D%22_blank%22%3E%40chenyin_h%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%20I%20am%20using%20IPCF%20version%204.10.10%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screenshot%202025-10-10%20225736.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202025-10-10%20225736.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F360294iF14B5049551A4BD4%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202025-10-10%20225736.png%22%20alt%3D%22Screenshot%202025-10-10%20225736.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2183483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G-VNP-RDB3%20IPCF%20communication%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2183483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F255175%22%20target%3D%22_blank%22%3E%40Kulkarni_v%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20reply%2C%3C%2FP%3E%0A%3CP%3EI%20feel%20sorry%20that%20still%20I%20do%20not%20see%20the%20IPCF%20version%20you%20used%20on%20M%20core%20side%2C%20the%20IPCF%20version%20may%20like%20the%20following%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22chenyin_h_0-1760065816841.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22chenyin_h_0-1760065816841.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F360167i214C39A320FE5A9E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22chenyin_h_0-1760065816841.png%22%20alt%3D%22chenyin_h_0-1760065816841.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThanks%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2182699%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G-VNP-RDB3%20IPCF%20communication%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2182699%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screenshot%202025-09-30%20125831.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202025-09-30%20125831.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359997i7E53B5D795A8F57B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202025-09-30%20125831.png%22%20alt%3D%22Screenshot%202025-09-30%20125831.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAt%20M-core%20side%20I%20have%20used%20above%20versions%20and%20I%20am%20using%20BSP40%20downloaded%20from%20software%20support(%3CA%20href%3D%22https%3A%2F%2Fnxp.flexnetoperations.com%2Fcontrol%2Ffrse%2Fdownload%3Fagree%3DAccept%26amp%3Belement%3D3993158%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fnxp.flexnetoperations.com%2Fcontrol%2Ffrse%2Fdownload%3Fagree%3DAccept%26amp%3Belement%3D3993158%3C%2FA%3E).%20I%20have%20not%20built%20it%20separately.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22shared%20image%20(1).jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22shared%20image%20(1).jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F360000i9B189E9EEAAC822E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22shared%20image%20(1).jpg%22%20alt%3D%22shared%20image%20(1).jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22shared%20image.jpg%22%20style%3D%22width%3A%20800px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22shared%20image.jpg%22%20style%3D%22width%3A%20800px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359999i7F7C9D995FD25A5A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22shared%20image.jpg%22%20alt%3D%22shared%20image.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2182666%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G-VNP-RDB3%20IPCF%20communication%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2182666%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F255175%22%20target%3D%22_blank%22%3E%40Kulkarni_v%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20post.%3C%2FP%3E%0A%3CP%3E1.%20Which%20version%20IPCF%20you%20are%20using%20for%20building%20the%20M%20core%20binaries%3F%3C%2FP%3E%0A%3CP%3E2.%20Have%20you%20build%20the%20IPCF%20A%20core%20side%20manually%20or%20directly%20using%20the%20IPCF%20modules%20existed%20in%20BSP%2040%20rootfs%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%3C%2FLINGO-BODY%3E