Fx natmod support & enable on Raspberry Pi Pico#11112
Open
jepler wants to merge 7 commits into
Open
Conversation
These have been broken for a long time but let's fix them.
With this, it is now possible to build & load the "features1" natmod test in the Unix coverage build and call its functions.
This will need to be tweaked, as some of the tests fail. But it'll be needed in order to eventually test natmod at build time.
With this change, I can load and use the "features1" module on a Raspberry Pi Pico board: ``` Adafruit CircuitPython 10.3.0-alpha.3-26-g4c4e6b00ad-dirty on 2026-07-12; Raspberry Pi Pico with rp2040 >>> import features1 initialising module self=0x200125b0 >>> [features1.fibonacci(i) for i in range(12)] [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] ``` features1 can be built like so: ``` make ARCH=armv6m ```
Author
|
happy to negotiate on whether to enable this on pi pico (that commit is easy to rebase out) but it's the board where I wanted it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These have been broken for a long time but let's fix them.
With these changes, I can locally use the
features1loadable native module in the Unix coverage port:With this change, I can also load and use the "features1" module
on a Raspberry Pi Pico board:
features1 must be built like so:
then once copied to the device,