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

    Is it possible to recompile Pycom's ESP IDF with different settings?

    Scheduled Pinned Locked Moved Discussion
    esp-idfmicropythoncompile
    3 Posts 2 Posters 1.4k Views 2 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.
    • S Offline
      Sympatron
      last edited by

      While modifying Micropython for our purposes we hit a wall a few times, because some of the functionality we wanted to change was implemented in the IDF project and not in the Micropython project.

      For example we wanted to turn on debug output for certain modules in the IDF or activate FreeRTOS's trace features.

      At the moment this does not seem to be possible, because there is no working makefile to recompile the *.a libraries Micropython links against.

      Can you provide a working makefile for the IDF or point me to an existing one?

      X 1 Reply Last reply Reply Quote 0
      • X Offline
        Xykon administrators @Sympatron
        last edited by Xykon

        @sympatron We use the Wifi scan example application in the IDF to build the libraries: you'll find the sdkconfig which you can modify with make menuconfig then build the libraries with make all

        As for micropython the sdkconfig is in a slightly different format in sdkconfig.h

        We have a script we use internally to copy the IDF libraries from the scan application into the micropython folder. For now you can use the script below and I will see if we can get this added to the source tree for the next release.

        Download and copy the script (as get_idf_libs.py) into the pycom-micropython-sigfox/esp32 folder and run it with get_idf_libs.py --idflibs $(IDF_PATH)/examples/wifi/scan/build

        Let us know how this works for you.

        get_idf_libs.py

        Christian Ehlers

        S 1 Reply Last reply Reply Quote 2
        • S Offline
          Sympatron @Xykon
          last edited by

          @xykon I just tried it and it seems to work.
          Thank you very much!

          Are the settings in examples/wifi/scan/sdkconfig in the Pycom IDF repository exactly what you are building with or do you use a modified version? Is it documented anywhere which version of the IDF was used in a particular version of MicroPython?

          I assume at lot of the settings in sdkconfig (for example partition table) don't really matter, because they only change the (in this case unused) bootloader and app that are also built with make all. Is this correct?

          I think a hint in the readme.md of the Pycom IDF would be helpful.

          1 Reply Last reply Reply Quote 2

          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