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
rp2: native C modules cause crash #6959
Comments
Makes sense. RP Pico is Cortex-M0+ which is armv6m, not armv7m (cortex-m3). If you do a quick hack and modify py/dynruntime.mk to use |
I was looking into fixing this problem properly but it is quite complicated, from what I've seen. But at least we know the root cause. |
An example diff is posted on the RPi forums. It works for me. |
See also #7616 (comment) for a related issue. Fortunately this one is easier to work around! |
Ok... less great news. With the patch I found, I'm getting linker errors when I try to call
I'm using the ARM "GNU Arm Embedded Toolchain 10 2021.07" on Windows through msys2/mingw. |
Since c1b9d22, features0 and features1 natmod examples can build for |
Now, `led.value = not led.value` works as a way to toggle the LED state. Closes: micropython#6959
To replicate compile the
features0.c
demo for armv7m. The resultantfeatures0.mpy
imports OK, but any attempt to run it e.g.results in a crash.
The text was updated successfully, but these errors were encountered: