Skip to content

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Mar 5, 2024

The guard against running when flash is disabled isn't perfect and may lead to calling the row handler anyway. We were crashing due to mp_hal_delay_us being in flash. So, move it to RAM.

Also move the panic handler to IRAM so we get nice output when this happens.

Turn off JTAG by default so its pins can be used by code.py.

Fixes #8987

The guard against running when flash is disabled isn't perfect and
may lead to calling the row handler anyway. We were crashing due
to mp_hal_delay_us being in flash. So, move it to RAM.

Also move the panic handler to IRAM so we get nice output when this
happens.

Turn off JTAG by default so its pins can be used by code.py.

Fixes micropython#8987
@tannewt tannewt added this to the 9.0.0 milestone Mar 5, 2024
@tannewt tannewt requested a review from dhalbert March 5, 2024 20:52
dhalbert
dhalbert previously approved these changes Mar 5, 2024
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think we may see more of this kind of thing in the future.

@dhalbert
Copy link
Collaborator

dhalbert commented Mar 5, 2024

Lots of firmware overflows are causing the build failures.

We don't use it for opt builds, we just restart.
tannewt added 2 commits March 5, 2024 15:33
This minimizes the delay added. (`port_yield()` does vTaskDelay(4)
so low priority tasks run.)
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dhalbert dhalbert merged commit e64082d into adafruit:main Mar 6, 2024
@dhalbert dhalbert changed the title Improve RGBMatrix reliability Improve RGBMatrix reliability; update to ESP-IDF v5.1.3 Mar 7, 2024
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.

Internal watchdog timer expired error on MatrixPortal S3
2 participants