Skip to content

adjust stack for SAMD21 to accommodate larger pystack #3213

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

Merged
merged 2 commits into from
Jul 28, 2020
Merged

adjust stack for SAMD21 to accommodate larger pystack #3213

merged 2 commits into from
Jul 28, 2020

Conversation

jerryneedell
Copy link
Collaborator

@jerryneedell jerryneedell commented Jul 28, 2020

increase pystack by 512 bytes
decrease SAMD21 stack by 512 bytes

fixes #3208 - this was the original impetus for the update since pystack was too small to use the airlift.

also update frozen module Adafruit_CircuitPython_BusDevice -- not sure if I did this correctly but it works...

Tested on CircuitPlayGround Express -- able to import express library
from adafruit_circuitplayground.express import cpx

Are there other tests that need to be done with he crickit or displayio variants?

also tested on metro_m4_airlift_lite to verify #3208 fixed.

Only the pystack size in py/circuitpy_mpconfigport.h and the specific setting of CIRCUITPY_DEFAULT_STACK_SIZE for the atmel-samd SAMD21 are changed since it is the most impacted. It did not seem necessary to change all the other ports with stacks sized 20K or greater for the 512 byte difference. They can be added if desired.

also verified that several SAMD21 build seem to work normally
trinket_m0,pyruler_gemma_m0,pewpew10

the only issue I am having is with irremote(pulseio) and taht appears to be a 6.0.0-alpha2 issue in general -- see #3216

@jerryneedell jerryneedell requested a review from tannewt July 28, 2020 02:03
@jerryneedell jerryneedell requested a review from dhalbert July 28, 2020 02:20
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.

Looks good; thanks for testing!

There's a stuck check but we can merge anyway.

@dhalbert dhalbert merged commit 9fc7118 into adafruit:main Jul 28, 2020
@jerryneedell jerryneedell deleted the jerryn_pystack branch July 28, 2020 15:49
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.

pystack exhausted
2 participants