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

    structuring modules for freezing into firmware

    Scheduled Pinned Locked Moved MicroPython
    2 Posts 2 Posters 68 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.
    • G Offline
      gazmcghee
      last edited by

      Hello all,

      I have developed my app as 3 main modules in flash, and each module has folders inside them so code goes 1-3 levels deep ie module A might have a file at A.B.C
      Now I would like to freeze them into a custom firmware as described here
      https://github.com/pycom/pycom-libraries/tree/master/pycom-docker-fw-build
      but I am worried by the sentence :

      "The Frozen code implementation might not support sub-directories in MicroPython code."

      So does it support sub-directories or not?

      Do I need to restructure all my code into modules without subdirectories?

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

        Dear @gazmcghee,

        "The Frozen code implementation might not support sub-directories in MicroPython code."
        So does it support sub-directories or not?

        I was worried about that as well but I can well confirm everything works as intended. Our Terkin Datalogger contains modules with submodules [1] and freezing them works without any issue.

        Saying this, we would like to mention we are working with 1.20.x.

        With kind regards,
        Andreas.

        [1] https://github.com/hiveeyes/terkin-datalogger/tree/master/src/lib/terkin

        1 Reply Last reply Reply Quote 3

        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