LOGs
1) flash failed
Code: Select all
rlhao@rlhao-VirtualBox:~/work/iotjs/targets/esp32/app$ sudo python /home/rlhao/work/SDKS/esp32/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 write_flash --flash_mode qio --flash_freq 40m 0x1000 /home/rlhao/work/iotjs/targets/esp32/app/build/bootloader/bootloader.bin 0x10000 /home/rlhao/work/iotjs/targets/esp32/app/build/app-template.bin 0x4000 /home/rlhao/work/iotjs/targets/esp32/app/build/partitions_singleapp.bin
esptool.py v2.0-dev
Connecting...
Uploading stub...
Calling 4009068c
Stub running...
Changing baud rate to 921600
Changed.
Attaching SPI flash...
Configuring flash size...
Erasing flash...
Took 0.02s to erase flash block
Writing at 0x00001000... (100 %)
Wrote 8192 bytes at 0x00001000 in 0.1 seconds (608.6 kbit/s)...
Hash of data verified.
Erasing flash...
Took 0.01s to erase flash block
Writing at 0x00100000... (100 %)
Wrote 991232 bytes at 0x00010000 in 14.4 seconds (549.6 kbit/s)...
A fatal error occurred: Failed to calculate md5sum (result was 0x1, 0x0)
2) flash successfully
Code: Select all
rlhao@rlhao-VirtualBox:~/work/iotjs/targets/esp32/app$ sudo python /home/rlhao/work/SDKS/esp32/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 write_flash --flash_mode qio --flash_freq 40m 0x1000 /home/rlhao/work/iotjs/targets/esp32/app/build/bootloader/bootloader.bin 0x10000 /home/rlhao/work/iotjs/targets/esp32/app/build/app-template.bin 0x4000 /home/rlhao/work/iotjs/targets/esp32/app/build/partitions_singleapp.bin
esptool.py v2.0-dev
Connecting...
Uploading stub...
Calling 4009068c
Stub running...
Changing baud rate to 921600
Changed.
Attaching SPI flash...
Configuring flash size...
Erasing flash...
Took 0.01s to erase flash block
Writing at 0x00001000... (100 %) check_command
Wrote 8192 bytes at 0x00001000 in 0.1 seconds (609.6 kbit/s)...
Hash of data verified.
Erasing flash...
Took 0.01s to erase flash block
Writing at 0x000fe000... (100 %)
Wrote 983040 bytes at 0x00010000 in 14.4 seconds (546.2 kbit/s)...
Hash of data verified.
Erasing flash...
Took 0.02s to erase flash block
Writing at 0x00004000... (100 %) check_command
Wrote 8192 bytes at 0x00004000 in 0.1 seconds (607.4 kbit/s)...
Hash of data verified.
Leaving...