Esp8266 don't work after uploop

After uploading, the new application don’t start, even after power up or reset.
In the messages i see that the code is compressed, a stub is running and then the code iss uploaded. … .?

What platformio.ini and code are running?

[env:nodemcuv2]
platform = espressif8266
lib_extra_dirs = ~/Documents/Arduino/libraries
board = nodemcuv2
framework = arduino
monitor_speed = 74880

So what code are you running, what are you expecting to see and what are you seeing?

Simple code

void setup() {
Serial.begin(74880);
Serial.println(“Starting…”);
}

Log when uploading



Creating BIN file “.pio\build\nodemcuv2\firmware.bin” using “.pio\build\nodemcuv2\firmware.elf”
Configuring upload protocol…
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
Looking for upload port…
Auto-detected: COM5
Uploading .pio\build\nodemcuv2\firmware.bin
esptool.py v2.6
Serial port COM5
Connecting…
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:80:ef:da
Uploading stub…
Running stub…
Stub running…
Configuring flash size…
Auto-detected Flash size: 4MB
Compressed 270800 bytes to 196945…
Wrote 270800 bytes (196945 compressed) at 0x00000000 in 17.9 seconds (effective 121.3 kbit/s)…
Hash of data verified.

Leaving…
Hard resetting via RTS pin…

Start the monitor

— Miniterm on COM5 74880,8,N,1 —
— Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H —

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld

Push Reset Button

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld

No loop() function?

Also did you try another USB cable? The chip might not get enough power.

3.3v on the chip, tested with another nodemcu, another cable… before the platformio update, all was correct.

And yes there is a loop()
but empty.

Which version where you on previously? (from Releases · platformio/platform-espressif8266 · GitHub)

I don’t remember, but more to 6 month older.

If you replace this by

platform = espressif8266@2.0.4

it works? (You can try higher version from the link above until it doesn’t work anymore)

With the old version there are no mention of stub running, norcompression info.

The verbosity of the uploader might be lowered / different, but does the ESP run the firmware?

Platformio load the fimware, but the code never run. All i see are shown in my second or third post. Sorry for my poor english…

How can i reinstall the other version?

Could you find a version that works for your board from Releases · platformio/platform-espressif8266 · GitHub? (binary search / git bisect style)

Finaly, after 2 reinstallations, all works correctly with the last version…

Did you want to mention the version that worked for you, for anyone who has problems in the future? :wink: