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

Included boot.py incompatible with CircuitPython 8.0.0-beta3 and newer #655

Closed
DBendit opened this issue Nov 29, 2022 · 0 comments · Fixed by #698
Closed

Included boot.py incompatible with CircuitPython 8.0.0-beta3 and newer #655

DBendit opened this issue Nov 29, 2022 · 0 comments · Fixed by #698

Comments

@DBendit
Copy link
Contributor

DBendit commented Nov 29, 2022

https://blog.adafruit.com/2022/10/20/circuitpython-8-0-0-beta-3-released/

The property supervisor.runtime.next_stack_limit replaces supervisor.set_next_stack_limit()

As a result of this change, the included boot.py produces the following error on startup:

Adafruit CircuitPython 8.0.0-beta.4 on 2022-10-30; WeAct Studio Pico with rp2040
Board ID:weact_studio_pico
UID:1262522004251630
boot.py output:
Traceback (most recent call last):
  File "boot.py", line 3, in <module>
AttributeError: 'module' object has no attribute 'set_next_stack_limit'

It should be pretty straightforward to inspect the supervisor module to see whether or not it has the set_next_stack_limit() method and use that to determine which means to use to set the stack limit.

Alternatively, is setting the stack limit necessary? In http://kmkfw.io/docs/boot, the example modified boot.py doesn't include the stack size modification at all, and at least in my own experience, works just fine. Would it make more sense to remove it altogether?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant