Hi there,
I encounter a segmentation fault when trying to run the userspace IPCF example. This is in contrast to kernel example which works as intended. I'm using bsp linux 30.0 fsl-image-auto and IPCF 4.3 for M7 firmware. Both Linux and firmware are unmodified example code.
I'm also using release/SW32G2_IPCF_4.3.0_D2109 branch for both ipc-shm-us and its submodule ipc-shm
U-Boot setup:
setenv fw_file ipcf_example.bin
setenv fw_start_addr 0x34300000
setenv fw_entry_addr 0x34501000
setenv load_firmware 'dcache off; initsram 0x34100000 0x700000; fatload mmc 0:1 ${fw_start_addr} ${fw_file}; startm7 ${fw_entry_addr}'
saveenv
Then:
run load_firmware
boot
This is the error I get when running userspace IPCF example code from linux:
root@s32g274ardb2:~# ./ipcf_4.3_us/sample/ipc-shm-sample.elf
[ 68.178287] ipc-shm-uio 40198000.mscm: GIC Rx IRQ = 24
[ 68.178689] ipc-shm-uio 40198000.mscm: device ready
Input number of messages to send: 10
ipc-shm-us-app: ch 0 >> 20 bytes: SENDING MESSAGES: 10
ipc-shm-us-app: ch 1 >> 16 bytes: #1 Hello world!
Segmentation fault
Solved! Go to Solution.
The issue has been resolved
Where do you put this u-boot setup? Im doing same thing, and writing this every time when booting.
Hi st_ra,
You can use saveenv to make environment variables persistence. I'll edit the post to make it more clear
Kawin