@micropython.native support? MICROPY_EMIT_XTENSA define?
-
Hello,
MicroPython has support for native code via the "@micropython.native" decorator. It also seems to have support for native Xtensa processor code via the MICROPY_EMIT_XTENSA define.
I don't see the same support in the Pycom branch. What version of MicorPython is Pycom using? Is there anyone else that has tried adding support for this in Pycom?
Thank you!
--Jason
-
Hi there,
we learned only recently that native code generation indeed would be coming to MicroPython for ESP32 [1]. After MicroPython 1.12 arrived a few weeks ago, this even became a real thing:
The esp32 port has the following new features: native code generation [2]
However, Pycom just upgraded to MicroPython 1.11 a few months ago so we will probably have to wait a bit to see the upgrade to MicroPython 1.12.
With kind regards,
Andreas.[1] https://community.hiveeyes.org/t/native-modules-in-micropython/2709/2
[2] https://github.com/micropython/micropython/releases/tag/v1.12
-
Hello @robert-hh
Does your answer imply that there is a ESP8266 and/or STM32 version of the LoPy or any other dev board?
If not, is there a way one could make use of the native or viper decorators?
Any pointers you could share would be greatly appreciated.
-
@peterson79 MicroPython.org does not support @micropython.native in the ESP32 port. It is supported for ESP8266 and STM32.