S32G3 IPCF

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

S32G3 IPCF

1,695 Views
liujian_abup
Contributor I

hi,nxp:

       After the u-boot module starts the M7 core IPCF sample code through the following instructions, why does the A core insmod keep reporting a segmentation error when installing the sample project code。

      1.dcache off
      2.mw.q 0x34100000 0x0 0x40000
      3.fatload mmc 0:2 0x80000000 M7.bin
      4.cp.b 0x80000000 0x34300000 0x300000
      5.startm7 0x34500400

0 Kudos
Reply
7 Replies

1,687 Views
Joey_z
NXP Employee
NXP Employee

hi,liujian_abup

Thank you for contacting us.

Which version of BSP/IPCF are you using?  Does the M.7 is load normally?

When you compile IPCF, which version of kernel are you using? You should use the Image in the Kernel replace the defeat Image in BSP, have you tried to do so?

Hope it can help you.

BR

Joey

0 Kudos
Reply

1,679 Views
liujian_abup
Contributor I

hi, Joey_z
 bsp version : 43
 IPCF Version :SW32G_IPCF_4.10.0_D2405(A53和M7版本一致)

 M.7 loads normally
 I'll try the replacement operation

0 Kudos
Reply

1,666 Views
Joey_z
NXP Employee
NXP Employee

hi,liujian_abu

Have you modified the source code of IPCF and the driver code of IPCF for A core? Your loading address is different from that of the RTD demo. 

BR

Joey

0 Kudos
Reply

1,643 Views
liujian_abup
Contributor I

No modification

0 Kudos
Reply

1,633 Views
Joey_z
NXP Employee
NXP Employee

hi,liujian_abup

If you use the IPCF_Example_multi_instance_S32G399A_M7_0 demo in RTD,  you can do it to refer to the step as shown the following picture.

1.U-boot load the M core .bin file.

Joey_z_0-1747126219263.png

Refer to the content in picture to load.

Joey_z_1-1747126240855.png

2. insmod the .ko file.

Joey_z_2-1747126374042.png

It only has the M7_0 .bin, please ensure the load address correct.

Hope it can help you.

BR

Joey

 

 

0 Kudos
Reply

1,616 Views
liujian_abup
Contributor I

hi, Joey_z


It still crashes when using the insmod IPCF sample


The MCU has recreated it based on the screenshot you provided, and the load address is consistent with yours. The 7z file in the attachment is the sample I used for debugging here.

 

thank you.

0 Kudos
Reply

1,613 Views
Joey_z
NXP Employee
NXP Employee

hi,

Thank you for your reply.

I can not use your ipc-shm-sample_multi_instance.ko  file as the shown following picture.

Joey_z_0-1747134587879.png

Please check the uboot/kernel version on IPCF.

Joey_z_1-1747134637783.pngJoey_z_2-1747134646501.png

This is the way to compile the IPCF for .ko.

make -C ***/ipc-shm/sample_multi_instance PLATFORM_FLAVOR=s32g3  KERNELDIR=***/linux ARCH=arm64 CROSS_COMPILE=**/aarch64-none-linux-gnu- modules   4.10.0

BR

Joey

 

0 Kudos
Reply