Flash is too slow
Posted: Tue Jun 23, 2020 11:31 pm
Hi,
I have recently converted to ESP-IDF from the ADF, and trying to get over the overwhelming feeling.
I realised two things, however. The first is that, I now seem to be able to flash programs much slower than the Arduino IDE. I tried replacing the IDF's esptool.py with the one I found to see if that was the cause, but no changes, still. You can see below the console output for the two.
Secondly, I am still in my "playing" phase, so creating lots of project directories (i.e. copying from the examples directory). Every time I build a project for the first time, it takes a good amount of time building all the components in the ESP-IDF, inside the "build" directory inside the project. This also occupies hundres of MBs with redundant files. What am I doing wrong? I am on Linux.
Many thanks in advance.
ESP-IDF Flash Process (36 seconds, VSCode):
Arduino IDE Flash process (6 seconds):
I have recently converted to ESP-IDF from the ADF, and trying to get over the overwhelming feeling.
I realised two things, however. The first is that, I now seem to be able to flash programs much slower than the Arduino IDE. I tried replacing the IDF's esptool.py with the one I found to see if that was the cause, but no changes, still. You can see below the console output for the two.
Secondly, I am still in my "playing" phase, so creating lots of project directories (i.e. copying from the examples directory). Every time I build a project for the first time, it takes a good amount of time building all the components in the ESP-IDF, inside the "build" directory inside the project. This also occupies hundres of MBs with redundant files. What am I doing wrong? I am on Linux.
Many thanks in advance.
ESP-IDF Flash Process (36 seconds, VSCode):
Code: Select all
esptool.py v2.6
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: a4:cf:12:0b:9f:64
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1858.9 kbit/s)...
Hash of data verified.
Compressed 24960 bytes to 15250...
Wrote 24960 bytes (15250 compressed) at 0x00001000 in 1.3 seconds (effective 148.6 kbit/s)...
Hash of data verified.
Compressed 634832 bytes to 401400...
Wrote 634832 bytes (401400 compressed) at 0x00010000 in 35.4 seconds (effective 143.4 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Code: Select all
esptool.py v2.6
Serial port /dev/ttyUSB0
Connecting......
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: a4:cf:12:0b:9f:64
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 41291.6 kbit/s)...
Hash of data verified.
Compressed 15856 bytes to 10276...
Wrote 15856 bytes (10276 compressed) at 0x00001000 in 0.1 seconds (effective 902.2 kbit/s)...
Hash of data verified.
Compressed 650704 bytes to 392441...
Wrote 650704 bytes (392441 compressed) at 0x00010000 in 5.9 seconds (effective 889.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 8388.6 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...