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

    pycom-fwtool-cli flash command using .tar.gz vs .elf file

    Scheduled Pinned Locked Moved Firmware
    1 Posts 1 Posters 70 Views 1 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.
    • E Offline
      Eric Arnoldy
      last edited by

      I took a look at this -> Re: Using pycom-fwtool-cli, but still have questions.

      What am I missing where flashing with this tool where the repo publishes .elf files, but this tool takes either a .tar.gz or a binary file & partition combo?

      FYI here's the output of my pycom-fwtool-cli which is different (newer?) than the documentation.

      user@host# pycom-fwtool-cli -p /dev/ttyACM0 flash -f LoPy4-application.elf-0x00000.bin -h
      usage: pycom-fwtool-cli flash [-h] [-t TAR] [-f FILE] [--secureboot]
                                    [-p PARTITION]
      
      optional arguments:
        -h, --help            show this help message and exit
        -t TAR, --tar TAR     perform the upgrade from a tar[.gz] file
        -f FILE, --file FILE  flash binary file to a single partition
        --secureboot          Flash Encrypted binaries if avialable
        -p PARTITION, --partition PARTITION
                              The partition to flash (all, fs, nvs, factory,
                              secureboot, bootloader, partitions, otadata, fs1,
                              ota_0, config)
      

      I've figured out the esptool.py elf2image part ... but what partition do I need to use to get the latest firmware on here.

      Hopefully I'm missing something, and making this too difficult? Thoughts?

      esptool.py elf2image LoPy4-application.elf 
      

      I've been trying various things, so I'm not sure the state of my flash is ok, namely I get this on the console:

      rst:0x10 (RTCWDT_RTC_RESET),boot:0xb (HSPI_FLASH_BOOT)
      flash read err, 1000
      ets_main.c 371 
      ets Jun  8 2016 00:22:57
      
      rst:0x10 (RTCWDT_RTC_RESET),boot:0xb (HSPI_FLASH_BOOT)
      flash read err, 1000
      ets_main.c 371 
      ets Jun  8 2016 00:22:57
      
      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