Activate Backtrace on RISC-V

sentionic
Posts: 1
Joined: Mon Sep 23, 2024 2:03 pm

Activate Backtrace on RISC-V

Postby sentionic » Mon Sep 23, 2024 2:08 pm

In the documentation: https://docs.espressif.com/projects/esp ... edump.html

"For RISC-V, the focus is on MEPC and MTVAL, as well as stack information (Backtrace address is not printed by default)."

In the config: [ ] Generate and use eh_frame for backtracing (Generate DWARF information for each function of the project. These information perform backtracing when panics occur. Activating this option will activate as and generation of both .eh_frame and .eh_frame_hdr sections, resulting in a bin 100% larger). The main purpose of this option is to be able to have a backtrace the program itself, regardless of the serial monitor used. This option shall NOT be used for production.)

Is this the only way to enable backtraces for RISC-V? Is there a performance penalty also, or just size? Is this even the right option?

Who is online

Users browsing this forum: No registered users and 7 guests