Differences flashing with esptool-ck and esptool.py
Posted: Tue Dec 12, 2017 6:49 pm
I'm trying to flash an ESP-12e with the Arduino IDE (simple AP scan sketch from the examples).
Software used: Arduino IDE v1.8.5, ESP8266 SDK v2.3.0
build.options.json contains:
When I run the code, the chip enters into a reboot loop:
HOWEVER, if I flash the same firmware, generated by the Arduino IDE, with esptool.py:
... the firmware runs as expected:
Info about the esp model using esptool.py:
I'm at a loss here... why is esptool-ck not working as expected?
Software used: Arduino IDE v1.8.5, ESP8266 SDK v2.3.0
build.options.json contains:
Code: Select all
{
"builtInLibrariesFolders": "",
"customBuildProperties": "build.warn_data_percentage=75,runtime.tools.mkspiffs.path=/home/mun/.arduino15/packages/esp8266/tools/mkspiffs/0.1.2,runtime.tools.esptool.path=/home/mun/.arduino15/packages/esp8266/tools/esptool/0.4.9,runtime.tools.xtensa-lx106-elf-gcc.path=/home/mun/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2",
"fqbn": "esp8266:esp8266:generic:CpuFrequency=80,FlashFreq=40,FlashMode=dio,UploadSpeed=115200,FlashSize=4M1M,ResetMethod=ck,Debug=Disabled,DebugLevel=None____",
"hardwareFolders": "/usr/share/arduino/hardware,/home/mun/.arduino15/packages",
"otherLibrariesFolders": "/home/mun/development/Arduino/libraries",
"runtime.ide.version": "10805",
"sketchLocation": "/home/mun/development/Arduino/experiments/WiFiScan/WiFiScan.ino",
"toolsFolders": "/usr/share/arduino/tools-builder,/home/mun/.arduino15/packages"
}
When I run the code, the chip enters into a reboot loop:
Code: Select all
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld
HOWEVER, if I flash the same firmware, generated by the Arduino IDE, with esptool.py:
Code: Select all
esptool --port /dev/ttyUSB0 write_flash 0x00000 /tmp/arduino_build_783718/WiFiScan.ino.bin
... the firmware runs as expected:
Code: Select all
scan done
9 networks found
1: TeliaGateway58-98-35-F4-F6-67 (-85)*
2: kirrebock (-64)*
3: Chromecast1346.b (-81)
4: comhem_D28B75 (-69)*
5: J5.se Guest (-91)*
6: Illidan (-80)*
7: Sweethome (-40)*
8: ComHemE3B2AE (-61)*
9: comhem_B3E957 (-60)*
Info about the esp model using esptool.py:
Code: Select all
esptool.py v2.0.1
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266
Uploading stub...
Running stub...
Stub running...
Manufacturer: ef
Device: 4016
Detected flash size: 4MB
Hard resetting...
I'm at a loss here... why is esptool-ck not working as expected?