Skip to content

time.sleep "soft reboot" on ESP32S2-S2FN4R2 #7155

@davidr99

Description

@davidr99

CircuitPython version

Adafruit CircuitPython 8.0.0-beta.3 on 2022-10-20; S2Mini with ESP32S2-S2FN4R2

Code/REPL

import time
while True:
    print("Sleeping!")
    time.sleep(1)
    print("Loopping!")

Behavior

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
�]0;🐍192.168.1.138 | code.py | 8.0.0-beta.3�\Sleeping!
Loopping!
Sleeping!
�]0;🐍192.168.1.138 | Done | 8.0.0-beta.3�
Code stopped by auto-reload. Reloading soon.
soft reboot

Description

It seams that time.sleep crashes the microcontroller after a few times that it is called. Most times it only gets one sleep in before it does a "soft reboot"

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportissues that involve helping a user accomplish a task

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions