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

    Other files than Python files in Secure Firmware Build - is it possible?

    Scheduled Pinned Locked Moved Firmware
    3 Posts 2 Posters 81 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.
    • techykermitT Offline
      techykermit
      last edited by techykermit

      Hi!

      I know this might be a bit of a silly question since PyCom states in the documentation that this isn't possible, but no other context nor workarounds are given:

      It is only possible to include python files in the frozen section. Other filetypes (like .json or .cert) will not be added in the final binaries

      (from the documentation)

      But then, my questions are:

      1. Is it possible to include files of any other type anywhere in the firmware build at all?

      2. I'm thinking about getting around this using UART after the device firmware built has been completed. Does anyone have any experiences or tips to share?

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        I believe what you could do, is put the data you want to end up in the .json or .cert file in a .py file, and 'self extract' into the designated fileformats as a workaround (depending on the filesize). Do note that the python file has to compile, meaning you cannot just put the json formatted data in there, and rename the file afterwards.

        techykermitT 1 Reply Last reply Reply Quote 1
        • techykermitT Offline
          techykermit @Gijs
          last edited by

          @Gijs Thanks for the input, that sounds like an idea that can work.

          1 Reply Last reply Reply Quote 0

          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