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

    GPY full flash erase

    Scheduled Pinned Locked Moved GPy
    45 Posts 7 Posters 4.5k Views 7 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.
    • K Offline
      kjm @robert-hh
      last edited by

      @robert-hh Thnx for that. Suppose I wanted to edit uping what extra software do I need on my Windows PC to do that? Filezilla & Atom seem to show me only a limited part of the total flash memory. I would like to move towards being able to include my boot.py in the firmware in case LittleFS is not the great saviour of reformatted/removed/randomly-syntax-errored user programs most people seem to think it is.

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

        @kjm If you want to include code into the firmware as so called "frozen bytecode", you must set up the firmware build environment. That is based on Linux. For building, you can use a virtual machine. There are some hints that WSL (Windows Subsystem for Linux = Linux inside Windows) works too. Only flashing requires then the native machine. These are two big steps, a) setting up and dealing with a virtual machine, b) setting up the firmware build environment. a) is relatively straightforward, b) is more tricky, even if well documented.
        P.S.: boot.py and main.py are, as it is now, always executed from the file system. Of course you can change the code of mptask.c to let them start from the flash. But there are already two files, _boot.py and _main.py, which just do that.

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kjm @robert-hh
          last edited by

          @robert-hh I've got a ubuntu VM running under windows, would it be able to flash a GPY? If so, can you link me to a guide for b) setting up the firmware build environment?

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

            @kjm You can use that to build the firmware package. The actual flashing must be done on Windows, since the VM's usually have issues with USB devices. For builing, follow the instructions in the README.me here:
            https://github.com/pycom/pycom-micropython-sigfox
            and here:
            https://github.com/pycom/pycom-micropython-sigfox/tree/Dev/esp32
            and the links therein.
            Follow the instructions carefully. My favorite pitfalls are:

            • you forgot to set environment variables
            • you forgot the command "git submodule update --init"
            • you selected the wrong branch. It is Dev for micropython and idf_v3.2 for the esp-idf. That changes from time to time.
            1 Reply Last reply Reply Quote 0
            • A Offline
              antonymarc
              last edited by

              I don't think pycom would refuse to promote pybytes as there entry into service business.

              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
              • 2
              • 3
              • 3 / 3
              • First post
                Last post

              Pycom on Twitter

              Pycom