Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32h7: systematic crash at each second boot with NETWORKING=y #35089

Closed
erwango opened this issue May 11, 2021 · 3 comments
Closed

stm32h7: systematic crash at each second boot with NETWORKING=y #35089

erwango opened this issue May 11, 2021 · 3 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: medium Medium impact/importance bug
Milestone

Comments

@erwango
Copy link
Member

erwango commented May 11, 2021

Describe the bug
On STM32H7 platform, a systematic error happens at each second boot.
git bisect leads to following PR: #34086

To Reproduce
Use any sample that uses NETWORKING=y on any h7 based board.
For instance:
west build -b nucleo_h745zi_q_m7 samples/posix/eventfd/

Expected behavior
No crash at boot

Impact
Blocker

Logs and console output

(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
arch_system_halt (reason=reason@entry=0) at /local/mcu/zephyrproject/zephyr/kernel/fatal.c:32
32		}
(gdb) bt
#0  arch_system_halt (reason=reason@entry=0) at /local/mcu/zephyrproject/zephyr/kernel/fatal.c:32
#1  0x08012204 in k_sys_fatal_error_handler (reason=reason@entry=0, esf=esf@entry=0x24003a80 <z_interrupt_stacks+2016>) at /local/mcu/zephyrproject/zephyr/kernel/fatal.c:44
#2  0x08012228 in z_fatal_error (reason=0, esf=esf@entry=0x24003a80 <z_interrupt_stacks+2016>) at /local/mcu/zephyrproject/zephyr/kernel/fatal.c:127
#3  0x0800e842 in z_arm_fatal_error (reason=<optimized out>, esf=esf@entry=0x24003a80 <z_interrupt_stacks+2016>) at /local/mcu/zephyrproject/zephyr/arch/arm/core/aarch32/fatal.c:62
#4  0x080043c2 in z_arm_fault (msp=<optimized out>, psp=<optimized out>, exc_return=<optimized out>, callee_regs=<optimized out>)
    at /local/mcu/zephyrproject/zephyr/arch/arm/core/aarch32/cortex_m/fault.c:1034
#5  0x0800423c in z_arm_usage_fault () at /local/mcu/zephyrproject/zephyr/arch/arm/core/aarch32/cortex_m/fault_s.S:102

@erwango erwango added bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug labels May 11, 2021
@erwango
Copy link
Member Author

erwango commented May 11, 2021

@ioannisg, @mmahadevan108, would you mind having a look ?

@galak galak added the platform: STM32 ST Micro STM32 label May 11, 2021
@erwango erwango added this to the v2.6.0 milestone May 11, 2021
@mnkp
Copy link
Member

mnkp commented May 11, 2021

This seems to be related to #35107. STM32H7 platform also requires CONFIG_NOCACHE_MEMORY=y for the Ethernet driver.

@galak
Copy link
Collaborator

galak commented May 18, 2021

Fixed by #35258

@galak galak closed this as completed May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants