Native machine code in Pico .mpy files

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
HermannSW
Posts: 197
Joined: Wed Nov 01, 2017 7:46 am
Contact:

Native machine code in Pico .mpy files

Post by HermannSW » Sat Apr 24, 2021 2:42 pm

"micropython/py/dynruntime.mk" does not know about "Pico" (cortex-m0plus) archtecture. I did hijack "armv7m" for the Pico and added support for Pico with 1line change commit on my micropython fork, that provides "string" example module with multiple member functions and multiple (int+str) arguments, for details:
https://www.raspberrypi.org/forums/view ... 6#p1856106

"peek" screenrecorder animation demonstrates building "string.c" and using module's "len()" and "substr()" member functions:
Peek_2021-04-24_16-06.gif
Peek_2021-04-24_16-06.gif
Peek_2021-04-24_16-06.gif (182.71 KiB) Viewed 2087 times
Pico-W Access Point static file webserver:
https://github.com/Hermann-SW/pico-w

Tiny MicroPython robots (the PCB IS the robot platform)
viewtopic.php?f=5&t=11454

webrepl_client.py
https://github.com/Hermann-SW/webrepl#webrepl-shell

Post Reply