mpy-cross configuration for RP2350? #16538
-
Hi, please does MPY cross compiler already support RP2350? Is there a way to generate valid MPY files for 2350? For RP2040, the architecture switch is '-march=armv6m', however RP2350 ?probably? is Armv8-M - and at least at this moment, the page Thanks so much, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Have you tried |
Beta Was this translation helpful? Give feedback.
-
@SteKme sorry for hijacking this thread and causing confusion. mpy-cross compiles python scripts to micropython byte code embedded in .mpy files. It has all the advantages you have mentioned and does not require to specify the architecture. Mpy files can also contain native code. These mpy files are architecture dependent. stm32f411 and rp2350 are both marked as armv7emsp (hardware fpu) by micropython and can therefore execute the same mpy file but the cpu architecture differs: stm32f411 is cortex arm m4f and rp2350 cortex m33 maybe this is the reason which the result of fpu calculation differs, more likely I made somewhere a silly mistake, but I really don't know. rp2040 is cortex m0 and has no hardware fpu therefore I implemented the fixed-point version as a work around which should not be needed on rp2350. |
Beta Was this translation helpful? Give feedback.
thank You, Peter, for Your help!