Segmentation Fault in IPCF Userspace Example

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

Segmentation Fault in IPCF Userspace Example

Jump to solution
2,239 Views
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 Kudos
1 Solution
2,123 Views
andrei_skok
NXP Employee
NXP Employee

The issue has been resolved

View solution in original post

0 Kudos
4 Replies
2,124 Views
andrei_skok
NXP Employee
NXP Employee

The issue has been resolved

0 Kudos
1,843 Views
jack_lee
Contributor I

Hi @andrei_skok ,

Do you know how to resolved this issue?

B.R.
Jack

0 Kudos
2,211 Views
st_ra
Contributor II

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

0 Kudos
2,201 Views
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 Kudos