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

  • 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
    Chip is ESP32D0WDQ6 (revision 0)
    Uploading stub...
    Running stub...
    Stub running...
    Changing baud rate to 921600
    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.

    Hard resetting...*

  • This post is deleted!

  • @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.

Log in to reply

Pycom on Twitter