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

    L01 flash,nvs,partitions,efuse configuration

    Scheduled Pinned Locked Moved LoPy
    l01
    8 Posts 3 Posters 1.5k Views 3 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.
    • Q Offline
      queifaro
      last edited by

      Hi all,
      i need to produce a L01 based board with my custom fw and application.

      I know there is partitions file (partitions.csv) under esp32/lib:

      Name, Type, SubType, Offset, Size

      nvs, data, nvs, 0x9000, 0x7000
      factory, app, factory, 0x10000, 1536K
      otadata, data, ota, , 4K
      ota_0, app, ota_0, 0x1a0000, 1536K
      dummy, data, 7, , 64K
      fs, data, 5, 0x380000, 508K
      config, data, 6, , 4K

      Is that partitioning schema valid also for L01 board or need to be manually adapted ?

      Where the efuse parts ?

      What does mean "dummy, data, 7, , 64K" ? 64K partition named dummy who start exactly at the end of the previous partition ?

      How can i read and write the partitions ? is pycom-fwtool-cli the right tool for that ? if yes manual page explain that the CB structure is reported here :https://github.com/pycom/pycom-micropython-sigfox/blob/master/esp32/pycom_config.h#L24, so witch kind of syntax is required to read/write the CB fields ? Same for NVS.

      Also partitioning file csv seems different from wath is reported in L01 spec pdf. (par. 11.0 Memory Map)

      I need to produce a certain number of L01 board burning it with wlan mac , LoRaWan dev_eui, BLE id and many other setting and i try to chose the best schema to do that.

      Thanks in advance
      Best
      Fabio

      1 Reply Last reply Reply Quote 0
      • D Offline
        danielm
        last edited by

        I am also building custom firmware with frozen application for my customers. I believe it is not yet possible to include custom file system or NVS pre-populated with values. This is why I store default NVS values in the code and after first boot they are written in the NVS and "init" value is set in the NVS as well. When this value is found in the NVS during following boots the initialization routine is skipped. JSON config files are created this way as well.
        I know that there was a plan to implement a way to include custom file system in the firmware, however I am not sure if this is already working.

        After building custom firmware, it is necessary to include following files into a *.tar.gz archive:

        • bootloader.bin
        • partitions.bin
        • lopy.bin (lopy4.bin, ...)
        • script (from /esp32/boards/... directory according to board type)
        tar -cvzf fw.tar.gz bootloader.bin partitions.bin script lopy.bin
        

        To flash new firmware you can use pycom-fwtool-cli:

        pycom-fwtool-cli -v -p comXY -s 921600 flash -t fw.tar.gz
        

        This syntax is valid for flashing from Windows.

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

          I am hoping to finally release the new beta firmware updater this week that will have a couple of cool new deployment features including easy distribution of file system and other partitions, plus a "copy" function that will let you backup & restore the various partitions on the esp32.

          @queifaro The L01 will work with the partition table, no modification is necessary. The size and location of the flash file system is determined during runtime.

          Christian Ehlers

          Q 2 Replies Last reply Reply Quote 0
          • Q Offline
            queifaro @Xykon
            last edited by

            @xykon Thanks.
            Best
            Fabio

            1 Reply Last reply Reply Quote 0
            • Q Offline
              queifaro @Xykon
              last edited by

              @xykon Hello, did you finalize the new firmware release ?

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

                @queifaro

                @queifaro said in L01 flash,nvs,partitions,efuse configuration:

                @xykon Hello, did you finalize the new firmware release ?

                Yes

                Christian Ehlers

                Q 1 Reply Last reply Reply Quote 0
                • Q Offline
                  queifaro @Xykon
                  last edited by

                  @xykon Where i can found it ?

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

                    @queifaro said in L01 flash,nvs,partitions,efuse configuration:

                    @xykon Where i can found it ?

                    https://pycom.io/downloads

                    Christian Ehlers

                    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