zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.91k stars 6.64k forks source link

STM32 L562 Nucleo - TF-M sample hardfault #80792

Closed Yidaen closed 2 weeks ago

Yidaen commented 2 weeks ago

Hello everyone,

I'm trying to run a TF-M example on the STM32 L562 Discovery Kit. I followed the example steps provided on the board’s page (https://docs.zephyrproject.org/latest/boards/st/stm32l562e_dk/doc/index.html).

However, when I run the example, I keep getting a Hard Fault error. When I connected to the debug tool to understand the cause of the Hard Fault, I noticed that the program counter (PC) was stuck at 0x0c000c28. When I checked this address in memory, I found it was empty.

What steps could I take to diagnose or resolve this issue?

To Reproduce

  1. west build -b stm32l562e_dk/stm32l562xx/ns samples/tfm_integration/tfm_ipc/
  2. ./build/tfm/api_ns/regression.sh
  3. west flash

Expected behavior

he expected output for TF-M IPC is provided at the very bottom of the example documentation. https://docs.zephyrproject.org/latest/samples/tfm_integration/tfm_ipc/README.html

Logs and console output

image

image

image

Environment (please complete the following information):

Ubuntu 24.04 Zephyr SDK 0.17.0 Commit: e90c58a

github-actions[bot] commented 2 weeks ago

Hi @Yidaen! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

erwango commented 2 weeks ago

Same as https://github.com/zephyrproject-rtos/zephyr/issues/77847. I propose to close this one and focus on the oldest one.

dkalowsk commented 2 weeks ago

Marking closed due to duplicate.