omi icon indicating copy to clipboard operation
omi copied to clipboard

Firmware - dk2 - Kernel Panic on Ozone debug step

Open 0xkelvin opened this issue 2 months ago • 3 comments

Describe the bug

Kernel Panic on Ozone debug step

To Reproduce Steps to reproduce the behavior:

  1. Follow guideline to compile firmware to compile firmware for dev kit 2.
  2. Connect Jlink debugger to SWD interface on dev kit 2
  3. Open OZone IDE
  4. Start debugging , then pause / resume -> hard fault

Current behavior Zephyr Kernel panic

Expected behavior Able to debug firmware normally without any hard fault, it is helpful for deep debugging for critical cases like memory leak...

Screenshots

Image

user ID (can we access the user info to validate the bug?): Can be found in settings => profile

device (please complete the following information):

  • Device version : dev kit version 2

0xkelvin avatar Nov 17 '25 09:11 0xkelvin

Nice observation. I just tested the SWD interface on Devkit 2 and encountered the same error as you. It seems to be an issue related to J-Link debugging rather than the firmware itself. Do you have any potential solutions or workarounds for this?

TuEmb avatar Nov 17 '25 11:11 TuEmb

Can you try to enable some config and debug again:

CONFIG_THREAD_MONITOR=y
CONFIG_INIT_STACKS=y
CONFIG_THREAD_STACK_INFO=y
Image

TuEmb avatar Nov 18 '25 04:11 TuEmb

Image

above config is giving us fatal error

0xkelvin avatar Nov 19 '25 00:11 0xkelvin