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

silabs/supervisor/port.c Add call to rtc_reset to prevent crash to safe mode #7939

Merged
merged 1 commit into from
May 8, 2023

Conversation

RetiredWizard
Copy link

@RetiredWizard RetiredWizard commented May 6, 2023

I'm using:

Adafruit CircuitPython 8.1.0-beta.2-12-g018f15de9-dirty on 2023-05-06; Sparkfun Thing Plus MGM240P with MGM240PB32VNA

Calls to the time module

import time
time.localtime()

were crashing the board into safe mode.

Apparently the rtc_time_source wasn't being initialized and calls to rtc_get_time_source_time would then crash. Adding a call to rtc_reset in silabs/supervisor/port.c (reset_port) seems to have resolved the problem.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thank you!

@tannewt tannewt merged commit 6c39077 into adafruit:main May 8, 2023
16 checks passed
@RetiredWizard RetiredWizard deleted the silabsrtc branch May 29, 2023 00:30
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.

None yet

2 participants