Page 1 of 1

RP2040 architecture

Posted: Mon Oct 04, 2021 7:13 pm
by hippy
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.