8000 ESP32 crashes when running uPy from ISR · Issue #4895 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content
ESP32 crashes when running uPy from ISR #4895
Open
@amirgon

Description

@amirgon

When MICROPY_PY_THREAD is enabled, ISR cannot be used for anything except mp_sched_schedule.

That's because a call to MP_STATE_THREAD (by nlr_push for example) calls pvTaskGetThreadLocalStoragePointer which is invalid in ISR context.

Perhaps Micropython should allocate state for ISR context as well?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0