RP2040 architecture

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
hippy
Posts: 130
Joined: Sat Feb 20, 2021 2:46 pm
Location: UK

RP2040 architecture

Post by hippy » Mon Oct 04, 2021 7:13 pm

In "CMakeLists.txt" we currently have -

Code: Select all

set(MICROPY_CROSS_FLAGS -march=armv7m)
I'm guessing that should be "armv6m" to match what the RP2040 actually is, but as that isn't supported by 'mpy-cross', it would have to be "armv6" for now ?

I hacked 'micropython/py/dynruntime.mk' and 'micropython/tools/mpy_ld.py' to add "armv6m" support for my Native C Modules which seems to have worked but not sure what changes would be needed for 'mpy-cross'. Even if it is fine as is it would be nice to have it accept "-march=armv6m" rather than throw an error.

Post Reply