ipc-shm software package version for s32g3 kernel 5.10.158-rt77

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

ipc-shm software package version for s32g3 kernel 5.10.158-rt77

Jump to solution
5,831 Views
fengxianeric
Contributor IV

Dear friends, about hardware platform s32g399a, I used kernel 5.10.158-rt77 from 

s32cc_defconfig, but failed to run sample module and got kernel crash with 2 ways,

#1 Method build without poll

step 1  insmod ipc-shm-dev.ko

step 2  insmod ipc-shm-sample.ko  ==> crash !

#2 Method build with poll

step 1  insmod ipc-shm-dev.ko

step 2  insmod ipc-shm-sample.ko  ==> crash !

--------------------


root@s32g274ardb2:~/release0511/poll# insmod ../ipc-shm-dev.ko
root@s32[ 23.991908] ipc_shm_dev: loading out-of-tree module taints kernel.
g274ardb2:~/release0511/poll# ls
ipc-shm-sample.elf ipc-shm-sample.ko ipc-shm-sample_multi-instance.ko
root@s32g274ardb2:~/release0511/poll# lsmod
Module Size Used by
ipc_shm_dev 40960 0
root@s32g274ardb2:~/release0511/poll# ./ipc-shm-sample.elf
ipc-shm-us-lib: ipc_os_init(): Can't open /home/eric/myspace/nxp/s32g3/modulesinstall/lib/modules/5.10.158-rt77/kernel/extra/ipc-shm-uio.ko module
root@s32g274ardb2:~/release0511/poll# mkdir -p /home/eric/myspace/nxp/s32g3/modulesinstall/lib/modules/5.10.158-rt77/kernel/extra/
root@s32g274ardb2:~/release0511/poll# cp ../ipc-shm-uio.ko /home/eric/myspace/nxp/s32g3/modulesinstall/lib/modules/5.10.158-rt77/kernel/extra/
root@s32g274ardb2:~/release0511/poll# ./ipc-shm-sample.elf
[ 65.459695] ipc-shm-uio 40198000.mscm: GIC Rx IRQ = 24
[ 65.459959] ipc-shm-uio 40198000.mscm: device ready
[ 65.460850] SError Interrupt on CPU7, code 0xbf000002 -- SError
[ 65.460861] CPU: 7 PID: 415 Comm: ipc-shm-sample. Tainted: G O 5.10.158-rt77 #13
[ 65.460867] Hardware name: NXP S32G399A-RDB3 (DT)
[ 65.460872] pstate: 60000000 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[ 65.460878] pc : 000000000040299c
[ 65.460880] lr : 0000000000402900
[ 65.460882] sp : 0000007feb637380
[ 65.460884] x29: 0000007feb637380 x28: 0000000000000000
[ 65.460894] x27: 0000000000000000 x26: 0000000000000000
[ 65.460901] x25: 0000000000000000 x24: 0000000000000000
[ 65.460906] x23: 0000000000000000 x22: 0000000000000000
[ 65.460912] x21: 0000000000401210 x20: 0000000000000000
[ 65.460917] x19: 0000000000404810 x18: 0000000000000000
[ 65.460924] x17: 0000007fb2fc9f40 x16: 0000007fb30a9f18
[ 65.460930] x15: 0000000000000000 x14: 0000000000000120
[ 65.460936] x13: 0000007fb3066108 x12: 0000007fb2cf8150
[ 65.460942] x11: 00000000003d0f00 x10: 0000007fb3086e24
[ 65.460948] x9 : 0000000001798470 x8 : 0000000000000087
[ 65.460953] x7 : 0000000000000000 x6 : 0000007fb2cf8220
[ 65.460959] x5 : 0000007fb2cf88e0 x4 : 00000000004161c8
[ 65.460964] x3 : 0000007fb2cf9008 x2 : 0000000000000000
[ 65.460971] x1 : 0000000000000000 x0 : 0000000000000048
[ 65.460978] Kernel panic - not syncing:
[ 65.460980] Asynchronous SError Interrupt
[ 66.461104] SMP: stopping secondary CPUs
[ 66.596970] Kernel Offset: disabled
[ 66.600436] CPU features: 0x00040022,2000200c
[ 66.604777] Memory Limit: none
[ 66.607819] ---[ end Kernel panic - not syncing: Asynchronous SError Interrupt ]---

 

0 Kudos
Reply
1 Solution
5,201 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

How are you setting your "project_parameters.mk" file? You are seeing that the specific file is not included under the include path.

Also, are you setting the flag to let EBT copy the project into its workspace?

DanielAguirre_0-1685133354057.png

If so, the generated files are not located at the IPCF example folder, but at the EB tresos folder. You can copy the generated files into the example folder (from EB/tresos/generate to Ipcf_TS_T40D11M40I0R0/examples/EBT/S32G3/Ipcf_Example_S32G399A_M7/generate), since the makefile of the project is configured to search in here, where the file that you are looking is located.

If you do not set the copy flag (as shown above), then your generate/include folder should look as follows:

DanielAguirre_1-1685133459583.png

Which, again, has the file that you are looking for.

Please, let us know.

View solution in original post

0 Kudos
Reply
31 Replies
4,500 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

You say you are using S32G3 platform, but under the log you have provided it seems that you are using S32G2 software. Was this a typo?

Also, which BSP are you using?

Aside from this situation, it seems that you may be experiencing the same behavior as the following community thread:

IPCF kernel panic - NXP Community

Have you tried both turning off dcache as well as zeroing the SRAM region?

Please, let us know.

4,476 Views
fengxianeric
Contributor IV
The same phenomena with following errors, including with dcache off or not, with poll module or not.
---------------------------
root@s32g399ardb3:~/release0511/poll# ls
ipc-shm-sample.elf ipc-shm-sample.ko ipc-shm-sample_multi-instance.ko
root@s32g399ardb3:~/release0511/poll# insmod ipc-shm-sample.ko

Message from syslogd@ at Thu Jan 1 00:00:12 1970 ...
: [ 36.199652] Kernel panic - not syncing:
[ 6.599882] s32cc-dwmac 4033c000.ethernet eth0: PHY [stmmac-0:01] driver [Micrel KSZ9031 Gigabit PHY] (irq=POLL)
[ 6.613269] s32cc-dwmac 4033c000.ethernet eth0: Enabling Safety Features
[ 6.613392] s32cc-dwmac 4033c000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 6.613665] s32cc-dwmac 4033c000.ethernet eth0: registered PTP clock
[ 6.614080] s32cc-dwmac 4033c000.ethernet eth0: configuring for phy/rgmii-id link mode
[ 6.616900] 8021q: adding VLAN 0 to HW filter on device eth0
[ 9.674016] s32cc-dwmac 4033c000.ethernet: Set TX clock to 125M
[ 9.674052] s32cc-dwmac 4033c000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 9.674084] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 26.394221] ipc_shm_dev: loading out-of-tree module taints kernel.
[ 36.199481] SError Interrupt on CPU5, code 0xbf000002 -- SError
[ 36.199502] CPU: 5 PID: 284 Comm: insmod Tainted: G O 5.10.158-rt77 #13
[ 36.199509] Hardware name: NXP S32G399A-RDB3 (DT)
[ 36.199513] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[ 36.199519] pc : ipc_shm_init+0x440/0x8e0 [ipc_shm_dev]
[ 36.199537] lr : ipc_shm_init+0x11c/0x8e0 [ipc_shm_dev]
[ 36.199549] sp : ffffffc013d2b8b0
[ 36.199552] x29: ffffffc013d2b8b0 x28: 0000000000000000
[ 36.199561] x27: 0000000000000000 x26: ffffffc008865388
[ 36.199567] x25: ffffffc013d2ba20 x24: ffffffc008865380
[ 36.199574] x23: ffffffc008865388 x22: ffffffc00886d000
[ 36.199581] x21: ffffffc00886d3c0 x20: ffffffc013d2ba60
[ 36.199588] x19: 0000000000000000 x18: 00000000fffffffd
[ 36.199595] x17: 0000000034100000 x16: ffffffff00100000
[ 36.199601] x15: 0000000000000020 x14: ffffffffffffffff
[ 36.199606] x13: ffff000000000000 x12: 0000000000000018
[ 36.199612] x11: 0101010101010101 x10: ffffffff7f7f7fff
[ 36.199618] x9 : 0000000000000000 x8 : ffffff8800ac6780
[ 36.199625] x7 : 0000000000400000 x6 : 0000000000000008
[ 36.199631] x5 : 0000000000000008 x4 : 0000000000000003
[ 36.199638] x3 : 0000000000000000 x2 : ffffffc014200008
[ 36.199645] x1 : 0000000000000001 x0 : ffffffc008865380
[ 36.199652] Kernel panic - not syncing:
[ 36.199654] Asynchronous SError Interrupt
[ 37.199749] SMP: stopping secondary CPUs
[ 37.400452] Kernel Offset: disabled
[ 37.403917] CPU features: 0x00040022,2000200c
[ 37.408259] Memory Limit: none
[ 37.411300] ---[ end Kernel panic - not syncing: Asynchronous SError Interrupt ]---
0 Kudos
Reply
4,484 Views
fengxianeric
Contributor IV

Thanks. 

Here is my ipc-shm & ipc-shm-us software dev branch SW32G_IPCF_4.8.0_D2212, do you think it is not correct sw stack for s32g3 ?

0 Kudos
Reply
4,463 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

The IPCF version depends on the BSP version that you are using, which BSP version are you using?

Also, the dcache is not the only option that needs to be fulfilled, also the zeroing of the related SRAM region. The following is shown under the "description.txt" of the IPCF examples:

"- Disable Data Cache from uboot::

dcache off

- Zero-set SRAM shared memory used by both sample apps::

mw.q 0x34000000 0x0 0x100000"

Please, let us know.

2,065 Views
KJNK
Contributor II
I was facing the same problem, After disabling d-cache and setting zero to sram it worked for me.
I am very curious about the concept behind it, Can you explain why we need to disable the cache and set zero to SRAM
0 Kudos
Reply
4,451 Views
fengxianeric
Contributor IV
Yes it is useful for uboot command way, however sample module failed to send message due to being failed in getting resouces below,

root@s32g399ardb3:~/release0511/poll# lsmod
Module Size Used by
ipc_shm_sample_multi_instance 16384 0
ipc_shm_sample 16384 0
ipc_shm_dev 40960 2 ipc_shm_sample,ipc_shm_sample_multi_instance

-----------------
[ 10.762496] s32cc-dwmac 4033c000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 10.762530] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 24.130472] ipc_shm_dev: loading out-of-tree module taints kernel.
[ 71.301883] ipc-shm-sample: starting demo...
[ 71.301899] ipc-shm-sample: ch 0 >> 20 bytes: SENDING MESSAGES: 10
[ 71.301908] ipc-shm-sample: send_data_msg(): failed to get buffer for channel ID 1 and size 32
0 Kudos
Reply
4,420 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

Which BSP are you using?

The only situation in which we can reproduce your scenario is when there is no other core running the IPCF application, image below:

DanielAguirre_0-1684438738600.png

Once we set an application on another core, we see the following result:

DanielAguirre_1-1684438764705.png

Please, let us know.

0 Kudos
Reply
4,376 Views
fengxianeric
Contributor IV
bsp 35.0 with fsl-image-auto,
new updates
----------------

root@s32g399ardb3:~/release0511/poll# echo 10 > /sys/kernel/ipc-shm-sample/ping
root@s32g399ardb3:~/release0511/poll# dmesg -c
[ 656.489919] ipc-shm-sample: starting demo...
[ 656.489937] ipc-shm-sample: ch 0 >> 20 bytes: SENDING MESSAGES: 10
[ 656.489947] ipc-shm-sample: ch 1 >> 32 bytes: #0 HELLO WORLD! from KERNEL
[ 656.489961] ipc-shm-dev: ipc_shm_tx(): Buffer address 0000000096420976 doesn't belong to channel 1
[ 656.489968] ipc-shm-sample: send_data_msg(): tx failed for channel ID 0, size 32, error code -22
0 Kudos
Reply
4,362 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

Doing more research upon your current setup (IPCF 4.8.0), there seems to be a bug under the provided M7 example. Help us trying the single instance example (IPCF_Example_S32G399_M7) following these steps:

1. Modify the ipc_sample_configure_irq() 

void ipc_sample_configure_irq(int irq_prio)
{
if (ipcf_shm_instances_cfg.shm_cfg[IPCF_INSTANCE].inter_core_rx_irq
!= IPC_IRQ_NONE) {
IntCtrl_Ip_InstallHandler(
ipcf_shm_instances_cfg.shm_cfg[IPCF_INSTANCE].inter_core_rx_irq
, ipc_shm_hardirq, NULL_PTR);
IntCtrl_Ip_SetPriority(
ipcf_shm_instances_cfg.shm_cfg[IPCF_INSTANCE].inter_core_rx_irq
, irq_prio);
IntCtrl_Ip_EnableIrq(
ipcf_shm_instances_cfg.shm_cfg[IPCF_INSTANCE].inter_core_rx_irq
);
}
}

2.  Modify the configuration of local  and remote shared mem address:

local shared mem address: 0x34200000

remote shared mem address: 0x34100000

These 2 steps are related to the M7 application. We have used the NXP provided BSP 35.0 and we can run the application as follows:

DanielAguirre_0-1684789498358.png

Please, let us know.

0 Kudos
Reply
4,334 Views
fengxianeric
Contributor IV
Yes, follow up under /NXP/SW32G_IPCF_4.6.0_D2205/sample/s32_rtd,got the results below,
----------------------------------------
=> dcache off
=> mw.q 0x34000000 0x0 0x100000
=> tftp 0x80000000 sample.bin
eth_eqos Waiting for PHY auto negotiation to complete....... done
Using eth_eqos device
TFTP from server 192.168.1.38; our IP address is 192.168.1.100
Filename 'sample.bin'.
Load address: 0x80000000
Loading: #################################################################
#################################################################
###############################
328.1 KiB/s
done
Bytes transferred = 2359296 (240000 hex)
=> cp.q 0x80000000 0x34200000 0x60000
=> startm7 0x34381000
Starting CM7_0 core at SRAM address 0x34381000 ... done.

--------------------------------------

root@s32g399ardb3:~/release0511/poll# insmod ipc-shm-sample_multi-instance.ko
root@s32g399ardb3:~/release0511/poll# dmesg -c
root@s32g399ardb3:~/release0511/poll# echo 6 > /sys/kernel/ipc-shm-sample-instance0/ping
root@s32g399ardb3:~/release0511/poll# echo 6 > /sys/kernel/ipc-shm-sample-instance1/ping
root@s32g399ardb3:~/release0511/poll# dmesg -c
[ 176.565966] ipc-shm-sample_multi-instance: starting demo on instance 0...
[ 176.565982] ipc-shm-sample_multi-instance: INST0 ch 0 >> 19 bytes: SENDING MESSAGES: 6
[ 176.565993] ipc-shm-sample_multi-instance: send_data_msg(): failed to get buffer on instance 0 for channel ID 1 and size 32
[ 181.125874] ipc-shm-sample_multi-instance: starting demo on instance 1...
[ 181.125880] ipc-shm-sample_multi-instance: INST1 ch 0 >> 19 bytes: SENDING MESSAGES: 6
[ 181.125888] ipc-shm-sample_multi-instance: send_data_msg(): failed to get buffer on instance 1 for channel ID 1 and size 32
root@s32g399ardb3:~/release0511/poll# NOTICE: Reset status: Power-On Reset


[ 6.640926] 8021q: adding VLAN 0 to HW filter on device eth0
[ 10.730482] s32cc-dwmac 4033c000.ethernet: Set TX clock to 125M
[ 10.730522] s32cc-dwmac 4033c000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 10.730555] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 26.530526] ipc_shm_dev: loading out-of-tree module taints kernel.
[ 43.333964] ipc-shm-sample: starting demo...
[ 43.333983] ipc-shm-sample: ch 0 >> 20 bytes: SENDING MESSAGES: 10
[ 43.333993] ipc-shm-sample: ch 1 >> 32 bytes: #0 HELLO WORLD! from KERNEL
[ 43.334005] ipc-shm-dev: ipc_shm_tx(): Buffer address 000000001201d72b doesn't belong to channel 1
[ 43.334013] ipc-shm-sample: send_data_msg(): tx failed for channel ID 0, size 32, error code -22
0 Kudos
Reply
4,328 Views
fengxianeric
Contributor IV
The same phenomena for multi-instance version,
=> dcache off
=> mw.q 0x34000000 0x0 0x100000
=> tftp 0x80000000 0x34200000 0x30000
tftpboot - boot image via network using TFTP protocol

Usage:
tftpboot [loadAddress] [[hostIPaddr:]bootfilename]
=> tftp 0x80000000 IPCF_Example_multi_instance_S32G399A_M7_0.bin
eth_eqos Waiting for PHY auto negotiation to complete....... done
Using eth_eqos device
TFTP from server 192.168.1.38; our IP address is 192.168.1.100
Filename 'IPCF_Example_multi_instance_S32G399A_M7_0.bin'.
Load address: 0x80000000
Loading: ######################################################
1.5 MiB/s
done
Bytes transferred = 786432 (c0000 hex)
=> cp.q 0x80000000 0x34200000 0x30000
=> tftp 0x80000000 IPCF_Example_multi_instance_S32G399A_M7_1.bin
Using eth_eqos device
TFTP from server 192.168.1.38; our IP address is 192.168.1.100
Filename 'IPCF_Example_multi_instance_S32G399A_M7_1.bin'.
Load address: 0x80000000
Loading: ######################################################
1.5 MiB/s
done
Bytes transferred = 786432 (c0000 hex)
=> cp.q 0x80000000 0x34100000 0x30000
=> startm7 0x34181000
Starting CM7_0 core at SRAM address 0x34181000 ... done.

----------
[ 18.382512] ipc_shm_dev: loading out-of-tree module taints kernel.
[ 42.921938] ipc-shm-sample_multi-instance: starting demo on instance 0...
[ 42.921957] ipc-shm-sample_multi-instance: INST0 ch 0 >> 20 bytes: SENDING MESSAGES: 10
[ 42.921968] ipc-shm-sample_multi-instance: send_data_msg(): failed to get buffer on instance 0 for channel ID 1 and size 32
[ 46.773875] ipc-shm-sample_multi-instance: starting demo on instance 1...
[ 46.773886] ipc-shm-sample_multi-instance: INST1 ch 0 >> 20 bytes: SENDING MESSAGES: 10
[ 46.773895] ipc-shm-sample_multi-instance: send_data_msg(): failed to get buffer on instance 1 for channel ID 1 and size 32
0 Kudos
Reply
4,326 Views
fengxianeric
Contributor IV
When to load poll version,

root@s32g399ardb3:~/release0511/poll# echo 10 > /sys/kernel/
cgroup/ fscaps irq/ rcu_expedited uevent_seqnum
config/ ipc-shm-sample-instance0/ mm/ rcu_normal
debug/ ipc-shm-sample-instance1/ notes software_nodes/
root@s32g399ardb3:~/release0511/poll# echo 10 > /sys/kernel/ipc-shm-sample-instance0/ping
root@s32g399ardb3:~/release0511/poll# echo 10 > /sys/kernel/ipc-shm-sample-instance1/ping
root@s32g399ardb3:~/release0511/poll# dmesg -c
[ 829.373922] ipc-shm-sample_multi-instance: starting demo on instance 0...
[ 829.373939] ipc-shm-sample_multi-instance: INST0 ch 0 >> 20 bytes: SENDING MESSAGES: 10
[ 829.373949] ipc-shm-sample_multi-instance: send_data_msg(): failed to get buffer on instance 0 for channel ID 1 and size 32
[ 833.417853] ipc-shm-sample_multi-instance: starting demo on instance 1...
[ 833.417862] ipc-shm-sample_multi-instance: INST1 ch 0 >> 20 bytes: SENDING MESSAGES: 10
[ 833.417872] ipc-shm-sample_multi-instance: send_data_msg(): failed to get buffer on instance 1 for channel ID 1 and size 32
0 Kudos
Reply
4,309 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

We are seeing that you are executing the following command on u-boot:

cp.q 0x80000000 0x34200000 0x60000

Which is not the one mentioned over the "description.txt" provided under the single instance example, which referred to under the patch we have shared.

The single instance example also provides the commands that you need to follow in order to verify the example, which we don't see you are following.

Help us verifying that you can run the single instance with the provided patch and following the steps provided under the "description.txt" file embedded in the example (we understand that you are tftping your image, which should not be a problem).

Please, let us know.

0 Kudos
Reply
4,286 Views
fengxianeric
Contributor IV
Thanks, share one testing firstly,
SW version: bsp35.0+\SW32G_IPCF_4.6.0_D2205\sample\s32_rtd\
ops follow C:\NXP\SW32G_IPCF_4.6.0_D2205\sample\s32_rtd\README
-----------------------------
Will it influence booting kernel ?


Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.10.158-rt77 (eric@eric-VirtualBox) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) 10.2.1 20201103, GNU ld (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) 2.35.1.20201028) #13 SMP PREEMPT Wed May 10 15:23:17 CST 2023
[ 0.000000] Machine model: NXP S32G399A-RDB3
[ 0.000000] earlycon: linflex0 at MMIO 0x00000000401c8000 (options '115200n8')
[ 0.000000] printk: bootconsole [linflex0] enabled
[ 0.000000] SError Interrupt on CPU0, code 0xbf000000 -- SError
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.10.158-rt77 #13
[ 0.000000] Hardware name: NXP S32G399A-RDB3 (DT)
[ 0.000000] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=--)
[ 0.000000] pc : setup_arch+0x160/0x58c
[ 0.000000] lr : setup_arch+0x158/0x58c
[ 0.000000] sp : ffffffc010c73f00
[ 0.000000] x29: ffffffc010c73f00 x28: 0000000080b30018
[ 0.000000] x27: 00000000ffaa27f8 x26: 0000000000000000
[ 0.000000] x25: 00000000ffb3a508 x24: 00000000ffe06848
[ 0.000000] x23: 0000000000000000 x22: ffffffc010d13000
[ 0.000000] x21: fffffffefe600094 x20: ffffffc010cc7158
[ 0.000000] x19: ffffffc010000000 x18: 0000000000000005
[ 0.000000] x17: 0000000000001800 x16: 0000000000000000
[ 0.000000] x15: 0000000000000030 x14: ffffffffffffffff
[ 0.000000] x13: 0000000000000000 x12: 0000000000000028
[ 0.000000] x11: 0000000000000015 x10: 0101010101010101
[ 0.000000] x9 : 3334ff6b6e6e6f5e x8 : 7f7f7f7f7f7f7f7f
[ 0.000000] x7 : 736d647164676e62 x6 : 000006161d090b74
[ 0.000000] x5 : 740b091d16060000 x4 : 0000000000000000
[ 0.000000] x3 : ce6ded8ca0000000 x2 : 0000000000000000
[ 0.000000] x1 : 0000000000000000 x0 : 0000000000000080
[ 0.000000] Kernel panic - not syncing:
[ 0.000000] Asynchronous SError Interrupt
[ 0.000000] ---[ end Kernel panic - not syncing: Asynchronous SError Interrupt ]---
0 Kudos
Reply
4,275 Views
fengxianeric
Contributor IV
Also please check my code modification,
SW32G_IPCF_4.8.0_D2212/eclipse/plugins/Ipcf_TS_T40D11M40I0R0/examples/EBT/S32G3/Ipcf_Example_S32G399A_M7/src/main.c,
int main(void)
{
//Platform_Init(NULL_PTR); // not find platform.h

// eric
/* use default values from system.c */
/* Mpu_M7_Ip_Init(&MPU_M7_ModuleConfig_0); */
Mpu_M7_Ip_SetRegionConfig(14, MPU_M7_IPCF_SHAREDMEM);

/* Setup interrupts */
IntCtrl_Ip_Init(&IntCtrlConfig_0);

prepare_demo();

for (;;) {
if (exit_code != 0) {
break;
}
}
return exit_code;
}
0 Kudos
Reply
4,245 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We are not seeing any output regarding the IPCF 4.8.0 single instance example for S32DS we have mentioned earlier.

Can you help us with that? Since you were mentioning you were working with it.

Please, let us know.

0 Kudos
Reply
4,199 Views
fengxianeric
Contributor IV
Could you please help me correct compilation errors ?
------------------
EricLi@Tomato MSYS /c/NXP/SW32G_IPCF_4.8.0_D2212/eclipse/plugins/Ipcf_TS_T40D11M40I0R0/examples/EBT/S32G3/Ipcf_Example_S32G399A_M7
$ make platform=s32g399a core=m7_0 os_target=baremetal build
======================================================================
Creating directory for object files
Compiling src/sample.c
src/sample.c: In function 'IntCtrl_Ip_EnableIrq':
src/sample.c:45:82: error: implicit declaration of function 'Call_IntCtrl_Ip_EnableIrqPrivileged_TRUSTED'; did you mean 'Call_IntCtrl_Ip_EnableIrqPrivileged'? [-Werror=implicit-function-declaration]
45 | #define OsIf_Trusted_Call1param(name,param) Call_##name##_TRUSTED(param)
| ^~~~~
src/sample.c:76:17: note: in expansion of macro 'OsIf_Trusted_Call1param'
76 | OsIf_Trusted_Call1param(IntCtrl_Ip_EnableIrqPrivileged,(eIrqNumber))
| ^~~~~~~~~~~~~~~~~~~~~~~
src/sample.c:80:5: note: in expansion of macro 'Call_IntCtrl_Ip_EnableIrqPrivileged'
80 | Call_IntCtrl_Ip_EnableIrqPrivileged(eIrqNumber);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
make: *** [Makefile:274:sample.o] 错误 1

0 Kudos
Reply
4,139 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

For your specific command, we are not seeing it mentioned over the "description.txt" file that it is provided under the IPCF 4.8.0 eclipse plugin.

Have you followed the file? Does it fail?

Please, let us know.

0 Kudos
Reply
4,005 Views
fengxianeric
Contributor IV

Yes, I followed up ops in description.txt, and can be successful by clicking update code. That's why I  show you errors by making build.  Thanks.

0 Kudos
Reply
3,976 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

When you are saying "can be successful by clicking update code", are you referring to S32DS??

For EBT project, another "description.txt" is provided, which provides the related information for building the EBT project as well as "project_paramteres.mk" and the "make" command.

Please, let us know.

0 Kudos
Reply