Problem in recovering LoPy board
-
Hello everyone,
I have a LoPy with expansion board 2.1A and the LoPy is giving the following error:
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.I tried to update the LoPy firmware update tutorial found in: https://docs.pycom.io/updatefirmware/device/ with no success.
I also tried with the cli version of pycom-fwtool, but the result was the same. With the cli version I tried devices' flash found in: https://software.pycom.io/downloads/LoPy.html and https://software.pycom.io/downloads/pybytes/LoPy.html, using the latests and previous version to latest.
I changed the LoPy board with another, to check on the expansion board and the expansion board is working fine (code is running and I can insert new codes).
The tools (GUI and CLI) states that the flash was a success, but it keeps giving me the error mentioned above. Here an output of the cli:
root@diego-TWS:/home/diego# pycom-fwtool-cli -v -p /dev/ttyUSB0 flash -t Downloads/LoPy-1.20.2.r4.tar.gz
Running in FTDI mode
Connecting....
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Auto-detected Flash size: 4MB
Script Version: 2.1
Flash params set to 0x022f
Compressed 28672 bytes to 15666...
Writing bootloader.bin at 0x00001000... (100 %)
Hash of data verified.
Wrote 28672 bytes (15666 compressed) at 0x00001000 in 1.1 seconds (217.1 kbit/s)...Compressed 4096 bytes to 169...
Writing partitions_4MB.bin at 0x00008000... (100 %)
Hash of data verified.
Wrote 4096 bytes (169 compressed) at 0x00008000 in 0.1 seconds (255.8 kbit/s)...Compressed 1761280 bytes to 1147159...
Writing lopy.bin at 0x00128000... (100 %)
Hash of data verified.
Wrote 1761280 bytes (1147159 compressed) at 0x00010000 in 20.5 seconds (687.4 kbit/s)...Compressed 4096 bytes to 51...
Writing at 0x001BE000... (100 %)
Hash of data verified.
Wrote 4096 bytes (51 compressed) at 0x001be000 in 0.1 seconds (255.4 kbit/s)...Flash operation successful.
I navigated the forum and the tools / solutions to this problem were no longer available. Is there a way to solve this? Or did I lost my LoPy board for good?
-
@Diego-Cardoso You could try to do a full flash erase using esptool.py.
esptool.py -b 460800 -p /dev/ttyUSB0 --chip esp32 erase_flash
esptool.py is the core app inside pycom-fwtool-cli.
You may as well try the erase_all option of pycom-fwtool-cli.