-->
Page 1 of 2

Problem with flashed firmware

PostPosted: Sat May 09, 2015 1:43 am
by savitapio
I recently got NodeMCU v2 from seeedstudio.

plugged it to terminal, and it keep saying:
Code: Select allPlease run file.remove("user.lua") before first use.
Please run file.remove("user.lua") before first use.
...

all the time.
typed:
Code: Select allfile.remove("user.lua")

it answers:
Code: Select all+CSYSID:CHIP:A6415E;FLASH:1640EF;KEY:00000000;
OK
Please run file.remove("user.lua") before first use.
...


This is preinformation- if the actual NodeMCU board might be faulty?
Anyway found from the net that one should flash the newest firmware which i did:
Code: Select all% python esptool.py --port /dev/tty.SLAB_USBtoUART write_flash 0x00000 nodemcu-firmware/pre_build/latest/nodemcu_latest.bin

Connecting...
Erasing flash...
Writing at 0x00062000... (100 %)

Leaving...


After that I did not got any prompt from serial.
Boot sequence (at 74880 baud) gives out:

Code: Select allload 0x40100000, len 30452, room 16
tail 4
chksum 0xef
load 0x33333333, len 858993459, room 4


Nothing seems to help. I have tried to flash older firmwares (0.9.4 even 0.9.2)
but same output happens.

Also flashed blank&settings in as following:

Code: Select all% python esptool.py --port /dev/tty.SLAB_USBtoUART write_flash 0x7E000 nodemcu-firmware/bin/blank.bin
Connecting...
Erasing flash...
Writing at 0x0007ec00... (100 %)

Leaving...
% python esptool.py --port /dev/tty.SLAB_USBtoUART write_flash 0x7C000 nodemcu-firmware/bin/esp_init_data_default.bin
Connecting...
Erasing flash...
Writing at 0x0007c000... (100 %)

Leaving...


How can this be fixed, or did I managed to brick my board before any actual use :(

Re: Problem with flashed firmware

PostPosted: Sun May 10, 2015 4:56 am
by TerryE
Don't use the "latest". It is broken. Use 9.5 or even the 9.6dev builds which work.

Re: Problem with flashed firmware

PostPosted: Sun May 10, 2015 10:46 am
by savitapio
Nope :(

Flashing in any binary, ends up with the exactly same situation. Anyting that gets out is
that boot sequence i mentioned,
this one with 0.9.5/nodemcu_20150126.bin :

Code: Select all ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 28076, room 16
tail 12
chksum 0xef
ho 0 tail 12 room 4
load 0x33333333, len 858993459, room 12

Re: Problem with flashed firmware

PostPosted: Sun May 10, 2015 1:00 pm
by savitapio
with 0.9.6/nodemcu_20150216.bin:

Code: Select allets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 30600, room 16
tail 8
chksum 0xef
load 0x33333333, len 858993459, room 0
flash read err, ets_unpack_flash_code
ets_main.c