S32G3 IPC Demo Question

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

S32G3 IPC Demo Question

396 Views
Coco111
Contributor III

the demo seems doesn't work.

Step1: Compile IPCF_Example_S32G399_M7_0_demo.bin

Coco111_0-1689235543405.png

 

Coco111_1-1689235543465.png

Note:modification

       Local shared mem addr:    0x34200000 

       Remote shared mem addr:0x34100000

 

Step2: Compile ipc-shm-dev.ko &&ipc-shm-sample.ko

git checkout SW32G_IPCF_4.8.0_D2212
 
export ARCH=arm64
export CROSS_COMPILE=<DIR>/Desktop/S32G/BSP/seperate/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
 
make -C ./ipc-shm/sample PLATFORM_FLAVOR=s32g3 KERNELDIR=$PWD/linux modules
 
 
step3 run demo
  
uboot=>dcache off;
uboot=>mw.q 0x34000000 0x0 0x100000;
uboot=>tftp 0x80000000 IPCF_Example_S32G399_M7_0_demo.bin;
uboot=>cp.b 0x80000000 0x34300000 0xc0000;
uboot=>startm7 0x34381000
 
linux#insmod ipc-shm-dev.ko;insmod ipc-shm-sample.ko;
linux#echo 10 > /sys/kernel/ipc-shm-sample/ping
 
The system is stuck, possibly because no interrupt was received.

Screenshot from 2023-07-13 15-22-19.png

Tags (1)
0 Kudos
2 Replies

359 Views
nxf92355
NXP Employee
NXP Employee

Hi Ni Yu

 

Hope You are doing well

You are using bsp35.0, right. i think you not need to compile ipc-shm-dev.ko and  ipc-shm-sample.ko.

both module may already compiled. can you check in your board

as  root@s32g274ardb2:~# ls /lib/modules/`uname -r`/extra/ipc-shm-dev.ko
      root@s32g274ardb2:~# ls /lib/modules/`uname -r`/extra/ipc-shm-sample.ko

check and let us know

 

Regards ,

Tushar

0 Kudos

394 Views
Coco111
Contributor III
0 Kudos