Segmentation Fault in IPCF Userspace Example

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Segmentation Fault in IPCF Userspace Example

ソリューションへジャンプ
4,012件の閲覧回数
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 解決策
3,896件の閲覧回数
andrei_skok
NXP Employee
NXP Employee

The issue has been resolved

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
3,897件の閲覧回数
andrei_skok
NXP Employee
NXP Employee

The issue has been resolved

0 件の賞賛
返信
3,616件の閲覧回数
jack_lee
Contributor I

Hi @andrei_skok ,

Do you know how to resolved this issue?

B.R.
Jack

0 件の賞賛
返信
3,984件の閲覧回数
st_ra
Contributor II

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

0 件の賞賛
返信
3,974件の閲覧回数
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 件の賞賛
返信