Unable to flash dev7 to nodecmu v3 with arduino

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ibot
New user
Posts: 1
Joined: 18 Mar 2017, 23:36

Unable to flash dev7 to nodecmu v3 with arduino

#1 Post by ibot » 19 Mar 2017, 00:47

I am unable to flash v2.0.0-dev7 to nodemcu v3 via arduino ide on a linux system.

My configuration looks like this:
arduino-ide.jpg
arduino-ide.jpg (130.68 KiB) Viewed 1838 times
The upload looks successful

Code: Select all

...
esptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
	setting board to nodemcu
	setting baudrate from 115200 to 115200
	setting port from /dev/ttyUSB0 to /dev/ttyUSB0
	setting address from 0x00000000 to 0x00000000
	espcomm_upload_file
	espcomm_upload_mem
opening port /dev/ttyUSB0 at 115200
	tcgetattr
	tcsetattr
	serial open
opening bootloader
resetting board
trying to connect
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
Uploading 543488 bytes from /tmp/arduino_build_533117/ESPEasy.ino.bin to flash at 0x00000000
	erasing flash
	size: 084b00 address: 000000
	first_sector_index: 0
	total_sector_count: 133
	head_sector_count: 16
	adjusted_sector_count: 117
	erase_size: 075000
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	setting timeout 15000
	setting timeout 100
	espcomm_send_command: receiving 2 bytes of data
	writing flash
................................................................................ [ 15% ]
................................................................................ [ 30% ]
................................................................................ [ 45% ]
................................................................................ [ 60% ]
................................................................................ [ 75% ]
................................................................................ [ 90% ]
...................................................                              [ 100% ]
starting app without reboot
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	espcomm_send_command: receiving 2 bytes of data
closing bootloader
After upload in serial monitor

Code: Select all

 1384, room 16 
��!�’��d
~ld
�U


INIT : Booting version: (custom)
FS   : Mount successful
Resetting factory defaults...
RESET: Reboot count: 250
RESET: To many reset attempts

PID:0
Version:0
INIT : Incorrect PID or version!
Resetting factory defaults...
RESET: Reboot count: 250
RESET: To many reset attempts

Exception (0):
epc1=0x40106f65 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3fff3910 end: 3fff3b80 offset: 01a0

>>>stack>>>
3fff3ab0:  0000001c 00000000 3fff2a9c 401004d8  
3fff3ac0:  3fff2a9c 3fff2a9c 3fff5134 40202ea5  
3fff3ad0:  00000000 00000001 000001a5 4010020c  
3fff3ae0:  0000001c 00000000 3fff2a9c 00000000  
3fff3af0:  0000001c 00000000 3fff2a9c 40235880  
3fff3b00:  00000001 3fff293c 3fff2b60 3fff293c  
3fff3b10:  3fffdad0 3fff2b58 402372f0 3fff2b58  
3fff3b20:  3fffdad0 3fff2a9c 3fff1250 40207ded  
3fff3b30:  3fffdad0 3fff2a9c 3fff1250 40220401  
3fff3b40:  feefeffe feefeffe feefeffe 3fff5144  
3fff3b50:  0000002f 00000023 feefeffe feefeffe  
3fff3b60:  3fffdad0 00000000 3fff2b52 40237334  
3fff3b70:  feefeffe feefeffe 3fff2b60 40100718  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(1,0)


 ets Jan  8 2013,rst cause:4, boot mode:(1,0)
After reboot in serial monitor

Code: Select all

INIT : Booting version: (custom)
FS   : Mount successful
Resetting factory defaults...
RESET: Reboot count: 250
RESET: To many reset attempts

PID:0
Version:0
INIT : Incorrect PID or version!
Resetting factory defaults...
RESET: Reboot count: 250
RESET: To many reset attempts

Exception (0):
epc1=0x40106f65 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3fff3910 end: 3fff3b80 offset: 01a0

>>>stack>>>
3fff3ab0:  0000001c 00000000 3fff2a9c 401004d8  
3fff3ac0:  3fff2a9c 3fff2a9c 3fff5134 40202ea5  
3fff3ad0:  00000000 00000001 000001a5 4010020c  
3fff3ae0:  0000001c 00000000 3fff2a9c 00000000  
3fff3af0:  0000001c 00000000 3fff2a9c 40235880  
3fff3b00:  00000001 3fff293c 3fff2b60 3fff293c  
3fff3b10:  3fffdad0 3fff2b58 402372f0 3fff2b58  
3fff3b20:  3fffdad0 3fff2a9c 3fff1250 40207ded  
3fff3b30:  3fffdad0 3fff2a9c 3fff1250 40220401  
3fff3b40:  feefeffe feefeffe feefeffe 3fff5144  
3fff3b50:  0000002f 00000023 feefeffe feefeffe  
3fff3b60:  3fffdad0 00000000 3fff2b52 40237334  
3fff3b70:  feefeffe feefeffe 3fff2b60 40100718  
<<<stack<<<

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

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v09826c6d
~ld
�U


INIT : Booting version: (custom)
FS   : Mount successful
Resetting factory defaults...
RESET: Reboot count: 250
RESET: To many reset attempts

PID:0
Version:0
INIT : Incorrect PID or version!
Resetting factory defaults...
RESET: Reboot count: 250
RESET: To many reset attempts

Exception (0):
epc1=0x40106f65 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3fff3910 end: 3fff3b80 offset: 01a0

>>>stack>>>
3fff3ab0:  0000001c 00000000 3fff2a9c 401004d8  
3fff3ac0:  3fff2a9c 3fff2a9c 3fff5134 40202ea5  
3fff3ad0:  00000000 00000001 000001a5 4010020c  
3fff3ae0:  0000001c 00000000 3fff2a9c 00000000  
3fff3af0:  0000001c 00000000 3fff2a9c 40235880  
3fff3b00:  00000001 3fff293c 3fff2b60 3fff293c  
3fff3b10:  3fffdad0 3fff2b58 402372f0 3fff2b58  
3fff3b20:  3fffdad0 3fff2a9c 3fff1250 40207ded  
3fff3b30:  3fffdad0 3fff2a9c 3fff1250 40220401  
3fff3b40:  feefeffe feefeffe feefeffe 3fff5144  
3fff3b50:  0000002f 00000023 feefeffe feefeffe  
3fff3b60:  3fffdad0 00000000 3fff2b52 40237334  
3fff3b70:  feefeffe feefeffe 3fff2b60 40100718  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)
...
I tried different boards (Nodemcu v9, generic 8266).

Can somebody help?

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Unable to flash dev7 to nodecmu v3 with arduino

#2 Post by Shardan » 19 Mar 2017, 13:13

i can confirm that uploading with the arduino IDE does not work.
This is a misbehaviour of the Arduino loader!

My settings on a nodeMCU: nodeMCU 1.0 ESP12E, 1M SPIFFS.
Uploading works fine, booting results in an error:

Code: Select all

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

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v09826c6d
~ld
ªU


INIT : Booting version: (custom)
FS   : Mount successful
Resetting factory defaults...
RESET: Reboot count: 103
RESET: To many reset attempts

PID:0
Version:0
INIT : Incorrect PID or version!
Resetting factory defaults...
RESET: Reboot count: 103
RESET: To many reset attempts

Exception (0):
epc1=0x40106f65 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3fff4160 end: 3fff43d0 offset: 01a0

>>>stack>>>
3fff4300:  0000001c 00000000 3fff32e4 401004d8  
3fff4310:  3fff32e4 3fff32e4 3fff550c 40202e39  
3fff4320:  00000000 00000001 00000116 4010020c  
3fff4330:  0000001c 00000000 3fff32e4 00000000  
3fff4340:  0000001c 00000000 3fff32e4 402389c8  
3fff4350:  00000001 3fff3184 3fff33b0 3fff3184  
3fff4360:  3fffdad0 3fff33a0 4023a4bc 3fff33a0  
3fff4370:  3fffdad0 3fff32e4 3fff1a50 40207de5  
3fff4380:  3fffdad0 3fff32e4 3fff1a50 4022212d  
3fff4390:  feefeffe feefeffe feefeffe 3fff551c  
3fff43a0:  0000002f 00000023 feefeffe feefeffe  
3fff43b0:  3fffdad0 00000000 3fff339a 4023a500  
3fff43c0:  feefeffe feefeffe 3fff33b0 40100718  
<<<stack<<<
The following workaround works:
I've used the "Ctrl - Alt + S" (export compiled binary) comand from Arduino IDE.
It builds a -bin-File in the same folder the ESPEasy.ino resides in.
I copied the .bin to my old flash tool from the R14x-versions and renamed it to ESPEasy_R200_4096.bin
Then i was able to flash it to my testing nodeMCU without issues:

Code: Select all

INIT : Booting version: (custom)
FS   : Mount successful
INIT : Free RAM:24952
INIT : I2C
INIT : SPI not enabled
WIFI : No SSID!
WIFI : No SSID!
INIT : Normal boot
WD   : Uptime 0 ConnectFailures 0 FreeMem 19728
WD   : Uptime 1 ConnectFailures 0 FreeMem 19696
WD   : Uptime 1 ConnectFailures 0 FreeMem 19560
WD   : Uptime 2 ConnectFailures 0 FreeMem 19560
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 103 guests