Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    @micropython.native support? MICROPY_EMIT_XTENSA define?

    Scheduled Pinned Locked Moved Firmware
    esp32enhancement
    4 Posts 4 Posters 633 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      peterson79
      last edited by

      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

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @peterson79
        last edited by

        @peterson79 MicroPython.org does not support @micropython.native in the ESP32 port. It is supported for ESP8266 and STM32.

        mnovellaM 1 Reply Last reply Reply Quote 1
        • mnovellaM Offline
          mnovella @robert-hh
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • A Offline
            andreas
            last edited by andreas

            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

            1 Reply Last reply Reply Quote 4

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom