Content-Length: 261664 | pFad | https://github.com/adafruit/circuitpython/pull/10186

28 Fix signedness bug causing PIO hang-up. by eightycc · Pull Request #10186 · adafruit/circuitpython · GitHub
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

Fix signedness bug causing PIO hang-up. #10186

Merged
merged 1 commit into from
Mar 26, 2025
Merged

Conversation

eightycc
Copy link
Collaborator

Fixed signed-ness bug in State_Machine.c:use_existing_program() where state_machine was unsigned but tested for less than 0. This was causing wrap-around indexing and other incorrect behavior resulting in a hang-up.

Fixed processor-dependent includes that would cause RP2350 builds not to use third PIO.

Fixed hard-crash when de-initing PIO state machine that did not completely init due to exhaustion of PIO state machines.

Fixes #10157.

Fix crash on deinit of incompletely initied state machine.
Fix processor-dependent includes.
@eightycc eightycc requested a review from jepler March 26, 2025 15:51
jepler added a commit that referenced this pull request Mar 26, 2025
This fixes an unlikely problem with the USB host implementation on
rp2350 that would not have detected failure to allocate a DMA channel.

Together with #10186 this should give a clean build. As it is,
this will error.
jepler added a commit to jepler/circuitpython that referenced this pull request Mar 26, 2025
This fixes an unlikely problem with the USB host implementation on
rp2350 that would not have detected failure to allocate a DMA channel.

Together with adafruit#10186 this should give a clean build. As it is,
this will error.
Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

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

thanks! Looks good.

@jepler jepler merged commit 27f2b1c into adafruit:9.2.x Mar 26, 2025
158 checks passed
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.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/adafruit/circuitpython/pull/10186

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy