2024-09-16 03:31 AM
Hi,
I am debugging the STM32MP257F-EV1 board with a debugger via JTAG/SWD. The kernel version is 6.1.82.
While Linux executes, it loads the M33 firmware as confirmed in the prints below.
----------------------------------------------------
[ 15.673261] remoteproc remoteproc0: powering up m33
[ 15.679697] remoteproc remoteproc0: Booting fw image USBPD_DRP_UCSI_CM33_NonSecure.elf, size 5402348
[ 15.690327] rproc-virtio rproc-virtio.2.auto: assigned reserved memory node vdev0buffer@812fa000
[ 15.698127] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 15.699120] rproc-virtio rproc-virtio.2.auto: registered virtio0 (type 7)
[ 15.708049] remoteproc remoteproc0: remote processor m33 is now up
----------------------------------------------------
At the kernel prompt, I am able to break M33 core via the debugger, but soon after that, Linux freezes with the below message.
----------------------------------------------------
root@stm32mp2:~#
E/TC:0 stm32_iac_itr:180 IAC exceptions [127:96]: 0x4
E/TC:0 stm32_iac_itr:185 IAC exception ID: 98
E/TC:0 Panic at /usr/src/debug/optee-os-stm32mp/3.19.0-stm32mp-r2-r0/core/drivers/firewall/stm32_iac.c:200 <stm32_iac_itr>
E/TC:0 TEE load address @ 0x82000000
E/TC:0 Call stack:
E/TC:0 0x8200831c
E/TC:0 0x82035670
E/TC:0 0x82026440
E/TC:0 0x820345b4
E/TC:0 0x820140bc
E/TC:0 0x820017dc
----------------------------------------------------
After this, the watchdog timer resets the system after around 30 seconds.
Please let me know if there is workaround so that the A35 MPU executes normally when M33 is in break state.
I would also appreciate it if you could let me know why the A35 core/Linux freezes.
Thank you.
2024-09-20 02:23 AM
Hi @Aiyps
Are you using a sample project or a project generated with CubeIDE ?
Olivier