Skip to content

Disconnected postmortem capability #1011

Closed
@cpacey

Description

@cpacey

The built-in postmortem logging has been very useful. However, the data is always output to UART0, which functionally means that I need to be physically connected to the ESP to get that data. More and more, I'm wanting to get this information from a device in the field which has nothing attached to UART0.

I'm not entirely sure the best way to do this yet - among the options I've considered:

  1. Copy the crash information (rst_info, sp, the stack contents, etc) to flash before restarting, and then process as desired at next start up. My biggest worry about this is that we might do too many flash writes to a single sector, especially if the device gets into a tight crash loop.
  2. Send the info somewhere else, e.g. a quick UDP transmit. I've not tried this yet, so I don't know if it's feasible.

Regardless of the specific implementation, I could do it myself if I could register my own callback for when a crash occurs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions