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

Sdk 5.4 xtensa crashes and halt without proper reboot (IDFGH-14379) #15166

Open
3 tasks done
filzek opened this issue Jan 8, 2025 · 3 comments
Open
3 tasks done

Sdk 5.4 xtensa crashes and halt without proper reboot (IDFGH-14379) #15166

filzek opened this issue Jan 8, 2025 · 3 comments
Labels
Status: Opened Issue is new Type: Bug bugs in IDF

Comments

@filzek
Copy link

filzek commented Jan 8, 2025

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.4-1-g6b7b8ea3d2

Espressif SoC revision.

Esp32 Wrover

Operating System used.

Windows

How did you build your project?

Command line with Make

If you are using Windows, please specify command line type.

None

Development Kit.

Esp32 Wrover module

Power Supply used.

External 5V

What is the expected behavior?

Doesnt crash, but as it crashes the system should REBOOT, but it just halt and locked.

What is the actual behavior?

Guru Meditation Error: Core 1 panic'ed (Double exception).

Core 1 register dump:
PC : 0x4009d882 PS : 0x00040136 A0 : 0x801d3620 A1 : 0x3fff8710
--- 0x4009d882: _xt_context_save at C:/Espressif/frameworks/esp-idf-v5.4/components/xtensa/xtensa_context.S:203

A2 : 0xd5d83b00 A3 : 0x00062b23 A4 : 0x00000000 A5 : 0x00060b23
A6 : 0x00000001 A7 : 0x3ffc3628 A8 : 0x00000000 A9 : 0x00000000
A10 : 0xc4f40983 A11 : 0x0000000c A12 : 0x00000001 A13 : 0x3f4408b0
A14 : 0x00000003 A15 : 0x00000000 SAR : 0x00000001 EXCCAUSE: 0x00000002
EXCVADDR: 0x3f4408a0 LBEG : 0x400838c9 LEND : 0x400838d1 LCOUNT : 0x00000026
--- 0x400838c9: esp_timer_impl_get_counter_reg at C:/Espressif/frameworks/esp-idf-v5.4/components/esp_timer/src/esp_timer_impl_lac.c:119
0x400838d1: esp_timer_impl_get_counter_reg at C:/Espressif/frameworks/esp-idf-v5.4/components/esp_timer/src/esp_timer_impl_lac.c:129

Backt�ace: 0x4009d87f:0x3fff8710 |<-CORRUPTED
--- 0x4009d87f: _xt_context_save at C:/Espressif/frameworks/esp-idf-v5.4/components/xtensa/xtensa_context.S:202

get locked and halted!

Steps to reproduce.

timers, gptimer, adc continous read, some isrs.

Debug Logs.

Guru Meditation Error: Core  1 panic'ed (Double exception).

Core  1 register dump:
PC      : 0x4009d882  PS      : 0x00040136  A0      : 0x801d3620  A1      : 0x3fff8710
--- 0x4009d882: _xt_context_save at C:/Espressif/frameworks/esp-idf-v5.4/components/xtensa/xtensa_context.S:203

A2      : 0xd5d83b00  A3      : 0x00062b23  A4      : 0x00000000  A5      : 0x00060b23
A6      : 0x00000001  A7      : 0x3ffc3628  A8      : 0x00000000  A9      : 0x00000000
A10     : 0xc4f40983  A11     : 0x0000000c  A12     : 0x00000001  A13     : 0x3f4408b0
A14     : 0x00000003  A15     : 0x00000000  SAR     : 0x00000001  EXCCAUSE: 0x00000002
EXCVADDR: 0x3f4408a0  LBEG    : 0x400838c9  LEND    : 0x400838d1  LCOUNT  : 0x00000026
--- 0x400838c9: esp_timer_impl_get_counter_reg at C:/Espressif/frameworks/esp-idf-v5.4/components/esp_timer/src/esp_timer_impl_lac.c:119
0x400838d1: esp_timer_impl_get_counter_reg at C:/Espressif/frameworks/esp-idf-v5.4/components/esp_timer/src/esp_timer_impl_lac.c:129



Backt�ace: 0x4009d87f:0x3fff8710 |<-CORRUPTED
--- 0x4009d87f: _xt_context_save at C:/Espressif/frameworks/esp-idf-v5.4/components/xtensa/xtensa_context.S:202

More Information.

To cause the problem esp32 are receivend a HTTP post, receving an ISR of 433mhz radio on gpio, and the iot buttom are being triggered. All those acting are enable and disable gpios while acting.

@filzek filzek added the Type: Bug bugs in IDF label Jan 8, 2025
@github-actions github-actions bot changed the title Sdk 5.4 xtensa crashes and halt without proper reboot Sdk 5.4 xtensa crashes and halt without proper reboot (IDFGH-14379) Jan 8, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Jan 8, 2025
@sudeep-mohanty
Copy link
Collaborator

Hi @filzek,
Could you make sure that you have either CONFIG_ESP32_PANIC_PRINT_REBOOT or CONFIG_ESP32_PANIC_SILENT_REBOOT enabled in your sdkconfig and not CONFIG_ESP32_PANIC_PRINT_HALT. Secondly, if you have a debugger attached then the default behavior would be to not reboot the chip on panic. You could change the behavior if you turn off CONFIG_ESP_DEBUG_OCDAWARE.

@filzek
Copy link
Author

filzek commented Jan 8, 2025

CONFIG_ESP32_PANIC_PRINT_REBOOT=y

CONFIG_ESP32_PANIC_PRINT_HALT is not set

CONFIG_ESP32_PANIC_PRINT_REBOOT=y

the
CONFIG_ESP_DEBUG_OCDAWARE=y
so need to change to is not set?

@sudeep-mohanty
Copy link
Collaborator

Hi @filzek,
If you have a debugger connected to your board then the board will not reboot when a panic happens. This behavior is in place to allow you to inspect the cause of the panic. The feature could be turned off by disabling CONFIG_ESP_DEBUG_OCDAWARE. However, if you do not have a debugger attached then this option would not have any effect. Could you confirm if this is the case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

3 participants