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

chore(debug): Implement core dump handling #168

Merged
merged 4 commits into from
Oct 11, 2024
Merged

chore(debug): Implement core dump handling #168

merged 4 commits into from
Oct 11, 2024

Conversation

Slider0007
Copy link
Owner

@Slider0007 Slider0007 commented Oct 10, 2024

Implement coredump handler and WebUI interface to easily view or download dump files for debugging purposes (Offline software exception evaluation) --> More Info: ESP-IDF documenation

  • Update partition table
  • Implement REST API to control core dump handling -> REST API coredump
  • Implement WebUI controls in System > System Info > Section Build
    • Show: Show dump backtrace summary
    • Save: Download core dump file to evaluate offline -> Howto
    • Clear: Format coredump partition to delete existing core dump data (NOTE: partition will be erased automatically after successful OTA update to ensure a clean start)
      image
      An exception info is available:
      image

⚠️⚠️⚠️ The partition table needs to be updated ⚠️⚠️⚠️
A new parition (coredump) is needed. New partition is added to end of existing partitions to not relocate them. Therefore an update of only the partition table should be enough. If partition is missing, functionality is not available, but it doesn't have any negative impact to flow processing.

Howto: Flash partitions.bin (part of firmware zip package) to MCU address 0x8000 using your favorite flash tool. More info

Example using Espressif Flash Tool:
image

@Slider0007 Slider0007 merged commit 5b5077c into develop Oct 11, 2024
8 checks passed
@Slider0007 Slider0007 deleted the coredump-3 branch October 11, 2024 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant