Segmentation Fault in IPCF Userspace Example

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Segmentation Fault in IPCF Userspace Example

跳至解决方案
2,331 次查看
kawin
Contributor III

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  

 

 

0 项奖励
1 解答
2,215 次查看
andrei_skok
NXP Employee
NXP Employee

The issue has been resolved

在原帖中查看解决方案

0 项奖励
4 回复数
2,216 次查看
andrei_skok
NXP Employee
NXP Employee

The issue has been resolved

0 项奖励
1,935 次查看
jack_lee
Contributor I

Hi @andrei_skok ,

Do you know how to resolved this issue?

B.R.
Jack

0 项奖励
2,303 次查看
st_ra
Contributor II

Where do you put this u-boot setup? Im doing same thing, and writing this every time when booting.

0 项奖励
2,293 次查看
kawin
Contributor III

Hi st_ra,

You can use saveenv to make environment variables persistence. I'll edit the post to make it more clear

Kawin

0 项奖励