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

    Flashing 1.7.8.b1 (containing frozen code) LoPy 4M from MSYS is not working

    Scheduled Pinned Locked Moved LoPy
    lopymsysflash
    3 Posts 2 Posters 1.3k 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.
    • C Offline
      Colateral
      last edited by

      Hello,

      Form MSYS, everything looks fine: build and flash 1.7.8.b1 (containing frozen code) on 4M LoPY .

      Unfortunately after reboot we are getting Lopy RGB led as red color and is not working.
      Using the firmware upgrade with 1.7.8.b1 is working. Also everything is working fine if we are doing the same operation from MSYS with previous LOPY.

      Do we need to configure special memory addresses for flashing on 4M LoPy?

      Here is the output from msys:

      xtensa-esp32-elf-size build/LOPY_868/release/application.elf
      text data bss dec hex filename
      1011802 255780 59920 1327502 14418e build/LOPY_868/release/application.elf
      IMAGE build/LOPY_868/release/lopy_868.bin
      python D:/Cata/Programming/pycom/pycom-esp-idf/components/esptool_py/esptool/esp tool.py --chip esp32 elf2image --flash_mode dio --flash_freq 80m -o build/LOPY_8 68/release/lopy_868.bin build/LOPY_868/release/application.elf
      esptool.py v2.0.1
      Signing OTA image
      bash tools/appsign.sh build/LOPY_868/release/lopy_868.bin build/LOPY_868/release
      Flashing project
      python D:/Cata/Programming/pycom/pycom-esp-idf/components/esptool_py/esptool/esp tool.py --chip esp32 --port COM5 --baud 921600 --before default_reset --after ha rd_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x 1000 build/LOPY_868/release/bootloader/bootloader.bin 0x8000 build/LOPY_868/rele ase/lib/partitions.bin 0x10000 build/LOPY_868/release/lopy_868.bin
      esptool.py v2.0.1
      Connecting.....
      Chip is ESP32D0WDQ6 (revision 0)
      Uploading stub...
      Running stub...
      Stub running...
      Changing baud rate to 921600
      Changed.
      Configuring flash size...
      Auto-detected Flash size: 4MB
      Flash params set to 0x022f
      Compressed 12896 bytes to 8143...
      Wrote 12896 bytes (8143 compressed) at 0x00001000 in 0.1 seconds (effective 1028 .3 kbit/s)...
      Hash of data verified.
      Compressed 3072 bytes to 145...
      Wrote 3072 bytes (145 compressed) at 0x00008000 in 0.0 seconds (effective 1476.5 kbit/s)...
      Hash of data verified.
      Compressed 1374224 bytes to 823362...
      Wrote 1374224 bytes (823362 compressed) at 0x00010000 in 12.6 seconds (effective 875.9 kbit/s)...
      Hash of data verified.

      Leaving...
      Hard resetting...*

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

        @Colateral Before föashing your own image, you have to erase flash completely. So with the Pycom IDF, issue:

        make erase
        make flash
        

        You have to reset the device again between the two commands. I noted that already as an issue, but is is not fixed yet.

        1 Reply Last reply Reply Quote 0
        • C Offline
          Colateral
          last edited by

          This post is deleted!
          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