support icon indicating copy to clipboard operation
support copied to clipboard

Cross Compile micropython for EV3

Open JonathanDrukker opened this issue 1 year ago • 1 comments

Hi, I would like to cross-compile my program for ev3 and run it on pybricks-micropython. I am using native emitters in the program.

I have tried to install the mpy-cross-v4 branch of this repository and run it on WSL, but when uploading to the EV3 I got the following error: ValueError: incompatible .mpy file I think it has something to do with the architecture of the EV3, which is armv5tejl, but when I build the files via ./mpy-cross -march=armv5tejl <path_to_file> it shows me the info/docs on how to use mpy-cross.

Does anyone have an idea on how to cross-compile for pybricks? Or something else? Thanks in advance.

JonathanDrukker avatar Feb 10 '24 18:02 JonathanDrukker

Even the latest version of MicroPython doesn't have a native emitter for anything older than armv6, so I'm afraid you are out of luck in that regard.

What are you doing that would require the native emitter? Maybe viper would be good enough instead of native?

dlech avatar Feb 11 '24 18:02 dlech