More Esp-12 Flashing problems

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

More Esp-12 Flashing problems

#1 Post by rmtucker » 13 Oct 2015, 20:59

Two new ESP-12 modules arrived today and i can not get them to work with ESPEasy???
I can flash with other Arduino programs and they work no problem but i get the following with ESPEasy:-

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
ªU
PID:0
Version:0
INIT : Incorrect PID or version!
RESET: Reboot count: 4
RESET: To many reset attempts
Entered Rescue mode!

asm7100
Normal user
Posts: 96
Joined: 13 Sep 2015, 21:45
Location: Denmark

Re: More Esp-12 Flashing problems

#2 Post by asm7100 » 13 Oct 2015, 21:35

5xESP-01 - 3xESP-12 - 2xESP-12E 3xRPIb+ - 1xBPIm1 - 3xACTi DOME - 7xACTi Indoor cam. Lot off cisco equ.

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: More Esp-12 Flashing problems

#3 Post by rmtucker » 13 Oct 2015, 21:54

That did not help
Still getting the same result.
Is there a way of determining the Flash size on an esp-12E as it is covered in a metal can.?

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: More Esp-12 Flashing problems

#4 Post by rmtucker » 13 Oct 2015, 23:42

Still struggling!!
It works with my other esp-12 module but not the new ones.
I ran the espeasy tool and erased the flash then re flashed with espeasy.
It will still not run.
So i ran espeasy tool again and read the flash and it is completely empty.
No version number or PID,nothing

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: More Esp-12 Flashing problems

#5 Post by rmtucker » 14 Oct 2015, 00:47

Well This is strange.
Used espeasy tool and erased the flash.
Installed R30 and at last it works !!!!!!
Then it allowed me to upgrade to R38.
Something has altered since R30 that will not allow a clean install on a new Esp-12.

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: More Esp-12 Flashing problems

#6 Post by rmtucker » 14 Oct 2015, 00:59

I have just gone through this on two fresh out of the factory boards.
Exactly the same results,can not install R38,have to install R30 first.
Then install R38.

Martinus

Re: More Esp-12 Flashing problems

#7 Post by Martinus » 14 Oct 2015, 18:55

Can't test this here, because my supply of fresh units is worn out...

I've tried to 'emulate' a fresh unit by filling all flash cells with '0xff', which should be the default value of an empty flash.

But still no issue here on a ESP12E module:

ŒònnžlnnœâìbpŒŽlrlrlpònà‚lŒœbnâ|lŒŒŽŽbŒònnî
PID:4294967295
Version:-1
INIT : Incorrect PID or version!
RESET: Reboot count: 0
FLASH: Erase Sector: 256
FLASH: Erase Sector: 257
FLASH: Erase Sector: 258
FLASH: Erase Sector: 259
FLASH: Erase Sector: 260
FLASH: Erase Sector: 261
FLASH: Erase Sector: 262
FLASH: Erase Sector: 263
FLASH: Erase Sector: 264
FLASH: Erase Sector: 265
FLASH: Erase Sector: 266
FLASH: Erase Sector: 267
FLASH: Erase Sector: 268
FLASH: Erase Sector: 269
FLASH: Erase Sector: 270
FLASH: Erase Sector: 271
FLASH: Erase Sector: 272
FLASH: Erase Sector: 273
FLASH: Erase Sector: 274
FLASH: Erase Sector: 275
FLASH: Erase Sector: 276
FLASH: Erase Sector: 277
FLASH: Erase Sector: 278
FLASH: Erase Sector: 279
FLASH: Erase Sector: 280
FLASH: Erase Sector: 281
FLASH: Erase Sector: 282
FLASH: Erase Sector: 283
FLASH: Erase Sector: 284
FLASH: Erase Sector: 285
FLASH: Erase Sector: 286
FLASH: Erase Sector: 287
FLASH: Erase Sector: 288
FLASH: Settings saved
FLASH: Settings saved

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

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
ªU
INIT : Booting Build nr:38
WIFI : Connecting...
WIFI : No SSID!
INIT : I2C
INIT : Boot OK
INIT : Reboot from deepsleep
WD : Uptime 0 ConnectFailures 0 FreeMem 28656

rtenklooster
Normal user
Posts: 320
Joined: 15 Apr 2015, 14:17

Re: More Esp-12 Flashing problems

#8 Post by rtenklooster » 14 Oct 2015, 19:14

Just tried a fresh one, never used brand new.
No problems.
Richard - Groningen (NL) - Image

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: More Esp-12 Flashing problems

#9 Post by rmtucker » 14 Oct 2015, 19:21

Martinus

Thank you for checking anyway.
When i try to use R38 on a fresh unit it does not erase the flash sectors and does not save any flash settings as in your screen.
Which results in incorrect pid and version number because they have not been saved to flash?
Anyway as long as i can get round it i am happy , just took me 24hrs of hair pulling to figure it out.

Martinus

Re: More Esp-12 Flashing problems

#10 Post by Martinus » 14 Oct 2015, 19:37

What kind of messages on serial port do you get after uploading R38 to a fresh unit (if any)?
Could you post it here?

If you remove power after upload, connect power again, connect serial port and reset, what output?

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: More Esp-12 Flashing problems

#11 Post by rmtucker » 14 Oct 2015, 20:19

This is serial output after R38 Upload.

ªU
PID:0
Version:0
INIT : Incorrect PID or version!
RESET: Cold boot

ctx: cont
sp: 3ffec8d0 end: 3ffecb50 offset: 01b0

>>>stack>>>
3ffeca80: 00000002 4000410f 3ffecac0 00000121
3ffeca90: 3fffc718 40004a3c 00000114 00114000
3ffecaa0: 3fffc718 40101dcc 00000114 402186c4
3ffecab0: 00000114 4020824a 00000113 40208277
3ffecac0: 3fff5200 00000018 00000018 402179bc
3ffecad0: 3f0155aa 3ffea998 3ffecbb0 3ffecb7c
3ffecae0: 3ffea080 00000000 3ffecbb0 40208324
3ffecaf0: 3ffea001 3ffecb7c 402026d0 3ffebb30
3ffecb00: 40201bca 000003e8 000003e8 3ffecb7c
3ffecb10: 3ffea080 3ffea998 3ffecbb0 4020ade4
3ffecb20: 00000000 00000000 00000000 00000000
3ffecb30: 3fffdc20 00000000 3ffecb74 40202743
3ffecb40: 00000000 00000000 3ffebb30 40100374
<<<stack<<<

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


ets Jan 8 2013,rst cause:4, boot mode:(1,3)

wdt reset

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: More Esp-12 Flashing problems

#12 Post by rmtucker » 14 Oct 2015, 20:21

This is after Re-power and reset.

RESET: Reboot count: 1

ctx: cont
sp: 3ffec8d0 end: 3ffecb50 offset: 01b0

>>>stack>>>
3ffeca80: 00000002 4000410f 3ffecac0 00000121
3ffeca90: 3fffc718 40004a3c 00000114 00114000
3ffecaa0: 3fffc718 40101dcc 00000114 402186c4
3ffecab0: 00000114 4020824a 00000113 40208277
3ffecac0: 3fff5200 00000018 00000018 402179bc
3ffecad0: 3f0255aa 00000014 40253f55 3ffecb7c
3ffecae0: 3ffea080 00000000 3ffecbb0 40208324
3ffecaf0: 3ffea002 3ffecb7c 402026d0 3ffebb30
3ffecb00: 40201bca 000003e8 000003e8 3ffecb7c
3ffecb10: 3ffea080 3ffea998 3ffecbb0 4020ade4
3ffecb20: 00000000 00000000 00000000 00000000
3ffecb30: 3fffdc20 00000000 3ffecb74 40202743
3ffecb40: 00000000 00000000 3ffebb30 40100374
<<<stack<<<

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

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
ªU
PID:0
Version:0
INIT : Incorrect PID or version!
RESET: Reboot count: 2

ctx: cont
sp: 3ffec8d0 end: 3ffecb50 offset: 01b0

>>>stack>>>
3ffeca80: 00000002 4000410f 3ffecac0 00000121
3ffeca90: 3fffc718 40004a3c 00000116 00116000
3ffecaa0: 3fffc718 40101dcc 00000116 402186c4
3ffecab0: 00000116 4020824a 00000115 40208277
3ffecac0: 3fff5200 00000018 00000018 402179bc
3ffecad0: 3f0355aa 00000014 40253f55 3ffecb7c
3ffecae0: 3ffea080 00000000 3ffecbb0 40208324
3ffecaf0: 3ffea003 3ffecb7c 402026d0 3ffebb30
3ffecb00: 40201bca 000003e8 000003e8 3ffecb7c
3ffecb10: 3ffea080 3ffea998 3ffecbb0 4020ade4
3ffecb20: 00000000 00000000 00000000 00000000
3ffecb30: 3fffdc20 00000000 3ffecb74 40202743
3ffecb40: 00000000 00000000 3ffebb30 40100374
<<<stack<<<

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

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
ªU
PID:0
Version:0
INIT : Incorrect PID or version!
RESET: Reboot count: 3
rd

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: More Esp-12 Flashing problems

#13 Post by rmtucker » 14 Oct 2015, 20:28

This is after R30 upload.

ªU0
0
INIT : Incorrect PID or version!
Reset!
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Erase ok
FLASH: Settings saved
FLASH: Settings saved

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


ets Jan 8 2013,rst cause:4, boot mode:(1,3)

wdt reset
INIT : Booting Build nr:30
WIFI : Connecting...
WIFI : No SSID!
INIT : I2C
INIT : Boot OK
Boot
INIT : RTC not read
WD : Uptime 0 ConnectFailures 0 FreeMem 29152
WD : Uptime 1 ConnectFailures 0 FreeMem 29152

Martinus

Re: More Esp-12 Flashing problems

#14 Post by Martinus » 16 Oct 2015, 17:41

Thanks for the output. But I can't figure out what's going wrong. It seems to crash before anything usefull can be done and certainly before it is able to write to flash. I would help if I can reproduce this myself.

I just received some fresh ESP-01 modules (with 1M flash).

Installed ESP Easy R38, results:

PID:4294967295
Version:-1
INIT : Incorrect PID or version!
RESET: Cold boot
FLASH: Erase Sector: 235
FLASH: Erase Sector: 236
FLASH: Erase Sector: 237
FLASH: Erase Sector: 238
FLASH: Erase Sector: 239
FLASH: Erase Sector: 240
FLASH: Erase Sector: 241
FLASH: Erase Sector: 242
FLASH: Erase Sector: 243
FLASH: Erase Sector: 244
FLASH: Erase Sector: 245
FLASH: Erase Sector: 246
FLASH: Erase Sector: 247
FLASH: Erase Sector: 248
FLASH: Erase Sector: 249
FLASH: Erase Sector: 250
FLASH: Erase Sector: 251
FLASH: Erase Sector: 252
FLASH: Erase Sector: 253
FLASH: Erase Sector: 254
FLASH: Erase Sector: 255
FLASH: Settings saved
FLASH: Settings saved

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

(at this point, removed GPIO-0 wire to ground and perform manual reset)

INIT : Booting Build nr:38
WIFI : Connecting...
WIFI : No SSID!
INIT : I2C
INIT : Boot OK
INIT : RTC not read
WD : Uptime 0 ConnectFailures 0 FreeMem 28592

So in this case, it is sad that it does not fail, still no clue...

asm7100
Normal user
Posts: 96
Joined: 13 Sep 2015, 21:45
Location: Denmark

Re: More Esp-12 Flashing problems

#15 Post by asm7100 » 16 Oct 2015, 18:22

Just hold GPIO0 to gnd when it boot up, and then its in flash mode.
5xESP-01 - 3xESP-12 - 2xESP-12E 3xRPIb+ - 1xBPIm1 - 3xACTi DOME - 7xACTi Indoor cam. Lot off cisco equ.

chanov
New user
Posts: 5
Joined: 01 Nov 2015, 00:52
Location: Russia
Contact:

Re: More Esp-12 Flashing problems

#16 Post by chanov » 01 Nov 2015, 00:58

Hi. I have a problem with upload code.
IDE write:

Hardware.ino: In function 'void hardwareInit()':
Hardware:12: error: no matching function for call to 'TwoWire::begin(int8_t&, int8_t&)'

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: More Esp-12 Flashing problems

#17 Post by Dylantje » 19 Jan 2016, 10:27

asm7100 wrote:Just hold GPIO0 to gnd when it boot up, and then its in flash mode.
I did this....

Only no succes..
Just the error :-(

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: More Esp-12 Flashing problems

#18 Post by BertB » 19 Jan 2016, 11:27

chanov wrote:Hi. I have a problem with upload code.
IDE write:

Hardware.ino: In function 'void hardwareInit()':
Hardware:12: error: no matching function for call to 'TwoWire::begin(int8_t&, int8_t&)'
What version are you using?
It looks like you do not have all the libraries. Best thing to do is to download the latest stable (ESPEasy R048). That has the required libraries.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: More Esp-12 Flashing problems

#19 Post by Dylantje » 19 Jan 2016, 11:35

BertB wrote:
chanov wrote:Hi. I have a problem with upload code.
IDE write:

Hardware.ino: In function 'void hardwareInit()':
Hardware:12: error: no matching function for call to 'TwoWire::begin(int8_t&, int8_t&)'
What version are you using?
It looks like you do not have all the libraries. Best thing to do is to download the latest stable (ESPEasy R048). That has the required libraries.
I try with 048 and 039....[ started clean ]

No errors while i upload the sketch..

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems. still errors on R70 ESP-12-E

#20 Post by tozett » 23 Jan 2016, 12:30

i have still this errors.
i have 3 of these modules esp12-E? (URL:http://tech.scargill.net/esp-12e-with-extra-pins/)
i tried to flash one with espeasy r048 with gave me an reboot-error.

i flashed exactly this module before with the nodemcu- 1.0 firmware. without any problems.
i also flashed before a (fresh) esp-01 module with the R048 build in the same environment: succesful.

so there was nodemcu1.0 on the module as i tried to (re)flash with espeasy r0.48.
maybe this caused the error?

i than took the compiled easeasy-bin from the temp-folder and flashed it with the nodemcu-flasher
(called firmware programmer) which you can get from github. still the same error.

i used all the time arduino-1.6.5-r5. it tried it to flash as Board "nodemcu 0.9", "nodemcu 1.0" and as "generic" with setting for an esp12 like the defaults for board "nodemcu 0.9/1.0". it doesen matter if i have GPIO15 high after flashing - or not. a bugg must be in the source-code, i guess..
i tried to flash EspEasy r039, still the same error:

Code: Select all

Soft WDT reset

ctx: cont 
sp: 3fff28a0 end: 3fff2b60 offset: 01b0

>>>stack>>>
3fff2a50:  00000000 4000444e 3fff2bb0 40218d2d  
3fff2a60:  00000002 4000422e 60000200 3fff4168  
3fff2a70:  00000100 40004ac0 00000100 00119000  
3fff2a80:  00000100 3fff4088 3fffc718 00119000  
3fff2a90:  00001000 4000410f 401019c4 00001000  
3fff2aa0:  3fff4088 3fff4088 00000121 00119000  
3fff2ab0:  3fffc718 3fff4088 00000119 4021ad28  
3fff2ac0:  00119000 4020c545 00000119 00119000  
3fff2ad0:  3fff5098 0000001f 00000018 4021a434  
3fff2ae0:  3f0455aa 00000014 40247069 3fff1b2c  
3fff2af0:  3fff0088 00000000 3fff2bb0 4020c610  
3fff2b00:  3fff0004 3fff1b2c 402180b0 3fff1b40  
3fff2b10:  40201c9e 000003e8 000003e8 3fff1b2c  
3fff2b20:  3fff0088 3fff09a0 3fff2bb0 4020f242  
3fff2b30:  00000000 00000000 00000000 00000000  
3fff2b40:  3fffdc20 00000000 3fff1b24 402180ee  
3fff2b50:  00000000 00000000 3fff1b40 40100114  
<<<stack<<<

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

load 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
~ld
ªU
PID:0
Version:0
INIT : Incorrect PID or version!
RESET: Reboot count: 4
RESET: To many reset attempts
Entered Rescue mode!
edit: this makes me think about

Code: Select all

 ets Jan  8 2013,rst cause:2, boot mode:(3,2)
https://github.com/esp8266/esp8266-wiki ... ot-Process says:
In the bootup message 'boot mode:(x,y)' three low bits of x are {MTDO, GPIO0, GPIO2}.
means: boot from spi-flash. it think. something wrong with this? i have no clue...


than i flashed (in the same environment) build R020!
(i stayed all the time with the libs from the R048.zip)
(settings for the board "nodemcu 0.9" == ESP-12)

Hurrahhhh. it worked. without any error. SUCCESS.

Code: Select all

INIT : Booting Build nr:20
WIFI : Connecting...
WIFI : No SSID!
WIFI : Starting AP Mode
INIT : I2C
INIT : Boot OK
Boot
0
normal boot
WD   : Uptime 0 ConnectFailures 0 FreeMem 24960
WD   : Uptime 1 ConnectFailures 0 FreeMem 24960
Do the devs now have to dig into this...?

it tried to flash R048 over the working R020: it failed!

i flashed R020 again. it worked.
i flashed R055 over it: it failed!!!
i flashed R020 again. it worked.
i flashed R070 over it: it failed!!!

There must me something for the devs, from R020 upwards on an ESP-12(x).

Please help, i would like to have a newer ESPeasy than R020 on my ESP12s....

What can i do now?

Martinus

Re: More Esp-12 Flashing problems. still errors on R70 ESP-12-E

#21 Post by Martinus » 23 Jan 2016, 13:31

tozett wrote:...What can i do now?
The major difference between R20 and R39 (and upwards) is that we moved from using the EEPROM reserved flash area to the SPIFFS reserved area. We need some flash area to store the ESP Easy configuration. The EEPROM reserved flash area is always properly set. But the SPIFFS area is depending on your board settings. No SPIFFS means no luck with ESP Easy. Mismatch of memory size most likely leads to writing configuration into a 'black hole".

If the module get's into this state:

Code: Select all

INIT : Incorrect PID or version!
RESET: Reboot count: 4
RESET: To many reset attempts
Entered Rescue mode!
You should still be able to get access using the serial monitor. Could you try to upload the latest version from github and check this serial command:

flashdump

On my NodeMCU devboard V1, that also has an ESP12E, this is the result:

Code: Select all

Flash start sector: 256
Flash end sector  : 1019
Offset: 0 : u9 x
This explains that SPIFFS starts at sector 256 (1MB) and there's approx. 3MB size.
It also lists "u9 x" and that's the string representation of the first item in ESP Easy config (the PID value). So the config exists in the right place!

If your modules are ESP12E, they should have 4MB flash.
If not done already, could you try to upload with flash size: 4M (3M SPIFFS)

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#22 Post by tozett » 23 Jan 2016, 14:18

Thanks a loooooot for this very fast reply.
i am still sitting in front of my esp an i will try to get it to work today... :)

i flashed over my working R020 the lastest(?) R070 an still this error:

flashdump shows:

Code: Select all

>flashdump
Flash start sector: 768
Flash end sector  : 1019
Offset: 0 : 
i tried this with 4MB/1MB spiffs, other as you suggested, because i tried all this defaults before.
i can only guess about this error, but as far as i know has nodemcu-firmware also an spiffs module. and this was working on the same board.
so i think, it is not this special ESP12-E board, instead something in the ESPeasy-firmware, wich i cannot solve my self alone?
i will do all testing whatsoever necessarry... :|

great thanks,
tozett

edit:
i configured the RAM as 1MB (128K SPIFFS) and got still the error with:

Code: Select all

flashdump
Flash start sector: 219
Flash end sector  : 251
Offset: 0 : 
i configured the RAM as 4M (1M SPIFFS) and got still the error with:

Code: Select all

<<<stack<<<

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

load 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
~ld
ªU
PID:0
Version:0
INIT : Incorrect PID or version!
RESET: Reboot count: 4
RESET: To many reset attempts
Entered Rescue mode!
>flashdump
Flash start sector: 768
Flash end sector  : 1019
Offset: 0 : 
i configured the RAM as 4M (3M SPIFFS) and got still the error with:

Code: Select all

<<<stack<<<

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

load 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
~ld
ªU
PID:0
Version:0
INIT : Incorrect PID or version!
RESET: Reboot count: 4
RESET: To many reset attempts
Entered Rescue mode!
>flashdump
Flash start sector: 256
Flash end sector  : 1019
Offset: 0 : 
i am now in doubt, wich ram this module >>really<< has. if i hit the right size, could this be the solution. or still sowhere else in the firmware?
Attachments
bug-Zwischenablage04.png
bug-Zwischenablage04.png (83.38 KiB) Viewed 33435 times

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems. Solved.

#23 Post by tozett » 23 Jan 2016, 14:47

you pointed in the right direction.
one must hit/configure the right ram-size of the single module. it is not visible from the outside, and specs are not always right.
but, this seems to work.

at least now i thought, i give the minimal ram-option a try. so 512K (64K SPIFFS). This works:

Code: Select all

wdt reset
--garbish--
INIT : Booting Build nr:70
WIFI : No SSID!
INIT : I2C
INIT : Boot OK
INIT : Reboot from deepsleep
WD   : Uptime 0 ConnectFailures 0 FreeMem 24592
so this single problem solved. at least the question remains, how to determin the right ram-size of such modules?
one cannot see the >>real<< ram size from the outside. in this case, could be more than 512... is there a line of code for this? or only testing?

edit: now i am on R070, the wizard took the ESP into my home-wifi. are there more (un-?)documented commands like "flashdump" to get the new ip from the console, after the wizard kicked me out of the primary AP-Host 192.168.1.4/setup ?
Last edited by tozett on 23 Jan 2016, 14:51, edited 1 time in total.

Martinus

Re: More Esp-12 Flashing problems

#24 Post by Martinus » 23 Jan 2016, 14:50

In these test cases, make sure you unplug the unit from power after flashing. The ESP sketch protects the system from trying to write the config too many times (flash chip will be dead in a short while). It keeps track with a counter that is not cleared during programming. This reset counter is only cleared after unplugging from the power source.

So try once more with R70 and 4M (3M SPIFFS) settings and unplug the unit from power and reconnect power.

Martinus

Re: More Esp-12 Flashing problems. Solved.

#25 Post by Martinus » 23 Jan 2016, 14:52

tozett wrote:you pointed in the right direction.
one must hit/configure the right ram-size of the single module. it is not visible from the outside, and specs are not always right.
but, this seems to work.

at least now i thought, i give the minimal ram-option a try. so 512K (64K SPIFFS). This works:

Code: Select all

wdt reset
--garbish--
INIT : Booting Build nr:70
WIFI : No SSID!
INIT : I2C
INIT : Boot OK
INIT : Reboot from deepsleep
WD   : Uptime 0 ConnectFailures 0 FreeMem 24592
so this single problem solved. at least the question remains, how to determin the right ram-size of such modules?
one cannot see the >>real<< ram size from the outside. in this case, could be more than 512... is there a line of code for this? or only testing?

edit: now i am on R070, the wizard took the ESP into my home-wifi. are there more (un-?)documented commands like "flashdump" to get the new ip from the console, after the wizard kicked me out of the primary AP-Host 192.168.1.4/setup ?
You can use "settings" command to get IP
You can use the main web page on ESP to check real flash chip size.

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#26 Post by tozett » 23 Jan 2016, 14:54

Martinus wrote:... and unplug the unit from power and reconnect power.
i did this always, because it was easier with the button on my breadboard power-supply. but it will give this another try now as i see, that i works at least with the minimal-ram option..

great thanks again,
also for this wonderful peace of code for the esp...
tozett

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#27 Post by tozett » 23 Jan 2016, 15:06

i checked the ram-size from the espeasy-page, looked like 4M.
bug-ram-Zwischenablage07.png
bug-ram-Zwischenablage07.png (139.25 KiB) Viewed 33434 times
i flashed, as you suggested, one again from the same environment,
(with wish i had succes on 512/64) now only the ram-settings changed to 4M/3MSPIFFS: failed.
rebooting again ...
(could no attach 2nd image, do it in another post)

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#28 Post by tozett » 23 Jan 2016, 15:08

4M/3M Spiff error:
i turned off the powersupply 3 times...

edit:
somehow suprising. i flashed afterwards the 512/64 setting, and all my configs from my first succes are working.
thought there should have been erased with flashing 4m/3M SPIFFS...
seems my lack of knowledge is bigger than it should be ... :lol:
Attachments
bug-2.png
bug-2.png (82.95 KiB) Viewed 33434 times

Martinus

Re: More Esp-12 Flashing problems

#29 Post by Martinus » 23 Jan 2016, 15:24

When it runs with 512/64, could you access the webgui and check the Flash size?

Regarding flash memory and programming: Loading a new sketch will only replace the sectors in flash memory where the sketch will reside.
It will not clear the entire flash! So any settings left there will remain (and could also lead to conflicts...)

In the mean time, I will be working on R71 where the flash will be wiped entirely (with exception of the sketch itself of course) if the ESP can't read the PID value from flash. This may help with proper start up on fresh unit's or units that had other firmware loaded.

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#30 Post by tozett » 23 Jan 2016, 15:56

Martinus wrote:When it runs with 512/64, could you access the webgui and check the Flash size?
i did this already two posts before with the screenshot attached, because i only get this "512/64 SPIFFS" running.
the webgui stated 4M, remarkably after flashing 512/64, if i read this right.
i tried than right immediatly after that the 4M/3MSPIFFS again (evertime same board+environment) after this (as you suggested), but failed.

so there seems to be 4M memory, but only 512/63-setting is working for flashing. hmmm?

i thought, flashing 4M/3SPIFFS 'had' erased my smaller 512/64SPIFFS config, but it was not so. i guess ??
i will try R071 on another module, if you inform me, when its ready.
(now experiencing probs with the i2c RFID rn532 reader on my working R070)

i think, but cant really remember, i read this from someone else on the web, that he flashed _all_ and every module in this setting. he pretended there to get also his "4/3M " modules working with the smaller 512-setting for flashing. ....hmmm...

anything else to investigate?

Martinus

Re: More Esp-12 Flashing problems

#31 Post by Martinus » 23 Jan 2016, 17:38

R71 is available and will erase everything besides the sketch if the PID does not match.
But I don't think this will solve your issues.

Maybe it will help to add a flash check feature that will just write and verify each sector.
Maybe the flash chip is faulty.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: More Esp-12 Flashing problems

#32 Post by Dylantje » 23 Jan 2016, 17:40

I do have troubles to..

Where can i find.... R71?

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#33 Post by tozett » 23 Jan 2016, 17:52

there seems to be in the software-section the same bug-investigation in parallel...(i canot see valuable hints...)
http://www.esp8266.nu/forum/viewtopic.p ... =180#p3303

Martinus

Re: More Esp-12 Flashing problems

#34 Post by Martinus » 23 Jan 2016, 19:21

R72 has a simple command added to read from sectors.

If I run this command on my NodeMCU V1 board, it shows the end of actual flash memory:

flashcheck 1020,1030

Code: Select all

FLASH: Verify Sector: 1020 : OK
FLASH: Verify Sector: 1021 : OK
FLASH: Verify Sector: 1022 : OK
FLASH: Verify Sector: 1023 : OK
FLASH: Verify Sector: 1024 : Fail
FLASH: Verify Sector: 1025 : Fail
FLASH: Verify Sector: 1026 : Fail
FLASH: Verify Sector: 1027 : Fail
FLASH: Verify Sector: 1028 : Fail
FLASH: Verify Sector: 1029 : Fail
Could you check if results are the same on your module?

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#35 Post by tozett » 23 Jan 2016, 19:40

ok. i will get me r072 and report here...

BerndJ
Normal user
Posts: 86
Joined: 28 Sep 2015, 06:57

Re: More Esp-12 Flashing problems

#36 Post by BerndJ » 23 Jan 2016, 19:54

Hi Martinus,

R72 just checked on my 3 "problem children" direct via OTA from R070, runs fine, no hardware reset needed.

@ tozett:

if u will using OTA u had to prog these parts only with 4M(3M SPIFFS), beginning with R029 and then R068, see my parallel post where i had listed the used line to get it running.

http://www.esp8266.nu/forum/viewtopic.p ... &start=186

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#37 Post by tozett » 23 Jan 2016, 20:03

looks promising...
i flashed with my prooven setting 512/64, flash worked, but we assume from the test before, that there must be 4M flash...
result was:
Attachments
bug-Zwischenablage07-3.png
bug-Zwischenablage07-3.png (53.39 KiB) Viewed 32124 times

BerndJ
Normal user
Posts: 86
Joined: 28 Sep 2015, 06:57

Re: More Esp-12 Flashing problems

#38 Post by BerndJ » 23 Jan 2016, 20:07

try it with 4M and begin with R029 and then R068

three minutes and all would be fine

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#39 Post by tozett » 23 Jan 2016, 20:33

and the result with (everthing the same), but memory-settings 4M/3M SPIFFS, in R072
Attachments
bug-4m-3spiffs.png
bug-4m-3spiffs.png (53.92 KiB) Viewed 32120 times

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#40 Post by tozett » 23 Jan 2016, 20:35

BerndJ wrote:try it with 4M and begin with R029 and then R068

three minutes and all would be fine
this is a solution, but nowhere documented as i started today.
dont know where to get R029or R068, but if R072 is improved and runs "out-of-the-box", isnt that what we want?

edit: sorry, didnt see the OTA topic. i must orientate myself about that.. maybee in R072 no problem anymore.. i have to look

BerndJ
Normal user
Posts: 86
Joined: 28 Sep 2015, 06:57

Re: More Esp-12 Flashing problems

#41 Post by BerndJ » 23 Jan 2016, 20:41

Hi,

yr results is not the same, see the first entries 1020 to 1023.

Is the problem solved in R072 ??, would be fine.

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#42 Post by tozett » 23 Jan 2016, 20:57

BerndJ wrote:Hi,
yr results is not the same, see the first entries 1020 to 1023..
hi, i am nowhere a developer/coder. simply got three ESP-12E and tested today....

but i dont understand. i flashed two times on the same module, same enviroenment.
first mit ram settings 512/64, second with ram-settings 4/3SPIFFS.
both marked in both screenshots, must have been different results. or not?
as i did this with ram-settings 4/3 before R072 it didnt worked. alway error in rebooting the whole module.
only succes with ram-settings 512/64.
since R072 it works with ram settings 4M/3SPIFFS. as it should from start on. i guess... ;)

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: More Esp-12 Flashing problems

#43 Post by Dylantje » 24 Jan 2016, 22:23

The solution...:
Flash version R072.... :oops:

It is alive again!!! :D :D :D

Thanks all!


Edit:

Problem again....
When i flash them they are working well

When i set the ip static.....
Booting loop....

Code: Select all

ad 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
~ld

INIT : Booting Build nr:19
WIFI : Connecting...
.
.
.
IP   : Static IP :192.168.5.101
INIT : I2C

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

wdt reset
load 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
~ld

INIT : Booting Build nr:19
WIFI : Connecting...
.
.
.
.
.
.
.
IP   : Static IP :192.168.5.101
INIT : I2C

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

wdt reset
load 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
~ld

INIT : Booting Build nr:19
WIFI : Connecting...
.
.
.
.
.
.
.
IP   : Static IP :192.168.5.101
INIT : I2C
:oops: :oops: :oops: :roll: :roll: :roll:

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#44 Post by tozett » 25 Jan 2016, 10:59

maybe its related to something in R072 and static ip -- and the dev has to look.

i looked up your boot-mode, and your error-status here:
https://github.com/esp8266/esp8266-wiki ... ot-Process

Code: Select all

ets Jan  8 2013,rst cause:4, boot mode:(3,6)
i dont know, if i am right, but for me, if i look to the table of the boot-modes, this looks like you have three pins high and it could be, that your esp wants to start from sd-card..?? maybe you connect gpio15 to low? if it is not already...?? do you have an esp12/esp01...must be esp12...? (MTDO is equivalent to GPIO15).

maybe not more than a hint...? good luck...

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: More Esp-12 Flashing problems

#45 Post by BertB » 25 Jan 2016, 13:18

I see build nr 19 in your report.
I had a lot of these problems too, but they got much fewer after soldering capacitors between the reset and power pin of the ESP and the metal shield

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: More Esp-12 Flashing problems

#46 Post by JR01 » 16 Feb 2016, 22:00

Hi all, pulling my hair out, same problems as most shown here. ESP-12E, loaded ESPEasy R78, tried 1024 and 4096 (with esptool.exe & flash.cmd). After many tries, got the setup pgm running, after fighting the 2nd logon of password on the web after Login screen, and had to rebuild the unit. Setup wireless, worked, an DHT11, and Thingspeak. But then tried to make one more change, and the unit went into a tailspin. Not loading with Arduino IDE, have no skills their yet, but with

I had this:
INIT : Incorrect PID or version!
RESET: Reboot count: 0
FLASH: Erase Sector: 256
FLASH: Erase Sector: 257
...
and then this:
PID:0
Version:0
INIT : Incorrect PID or version!
RESET: Cold boot
ctx: cont
sp: 3ffec8d0 end: 3ffecb50 offset: 01b0
>>>stack>>>
3ffeca80: 00000002 4000410f 3ffecac0 00000121
3ffeca90: 3fffc718 40004a3c 00000114 00114000
....
and this:
INIT : Incorrect PID or version!

RESET: Reboot count: 4
RESET: To many reset attempts
Entered Rescue mode!
--------------------------------------------------------
What have I done to fix?

a. I checked and double-double checked the power (other posts says this behaviour caused by power), but I run a stable 2.29v to lowest 2.24v
b. Cleaned flash with instructions on http://internetofhomethings.com/homethings/?p=396 blank.bin, boot_v1.1, user1.bin, etc. (with Python esptool), unplug from power after flashing, ...., ...., ....
c. Then loaded R78 again, same problems, stays in a loop, I cannot get control back.
d. Did not yet try earlier version of ESPEasy, do not know where to get them, do not want to go way back to R30....
--------------------------------------------------------
What have I learned in this post?

a. I read in this post, by by Martinus » 23 Jan 2016, 14:31, that from R39 version upwards, the SPIFFS are dealt with differently, "No SPIFFS means no luck with ESP Easy. Mismatch of memory size most likely leads to writing configuration into a 'black hole' "

When I started having problems with reboots, at a point where it was still stable, I ran flashdump, and got:

Sketch size : 375900
Sketch free space : 585728
Flash size : 4194304
SPIFFS start sector: 235
SPIFFS end sector : 251
Offset: 0 : u9.x.
--------------------------------------------------------
My Questions:

a. What are SPIFFS, and how can I find out how much I have, and once I know this (can one determine this from flashdump above?), how should I load ESPEasy differently with flash.cmd,

b. or must I try to get Arduino IDE up where SPIFFS size can be adjusted (have no skills in Arduino yet, and not a programmer, only cut&paste...)

c. It seams others had luck with R71, where can I find it, or will a next version solve it, when will this be out?

---------------------------------------------------------
And, lastly, apologies for long post!!!!! As you can see I have studied this topic intensely, but have burnt many nights and have nothing working yet....
Last edited by JR01 on 18 Feb 2016, 22:55, edited 1 time in total.
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#47 Post by tozett » 17 Feb 2016, 08:00

yesterday i reflashed an esp12e. first there was esp-basic firmware on this chip,
i flashed R078 from the arduino ide
(where i had to downgrad the pubsubclient-libs to 1.9.1. from actual 1.99.1 to get this working)
an got some reboots like you.

i connected to the esp_0 wifi, i managed to set it to my homelan, esp rebooted,
than i went into the serial monitor to check the ip with the command "settings".
i went to this new ip, but the login-page redirected to 192.168.4.1 (which is the default, not my homelan)

i did a cold start (power off/on), did not help.
but than i rememberd my own postings..

went into the serial console to the R078 flashed esp12 and issued: "erase" (only the word).
waited to let this happen until the end..

then i did a cold start again, logged again into the default esp_0 wifi, set it up to my homelan again,
and than it worked. :D

may you want to try this also. i know, time consuming, but may it works for you to? :roll:

my hardwaresettings were (cpu freq high, from my previous test with led, but worked) :
Attachments
esp12e.png
esp12e.png (23.75 KiB) Viewed 35012 times

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: More Esp-12 Flashing problems

#48 Post by JR01 » 17 Feb 2016, 18:34

tozett wrote:yesterday i reflashed an esp12e. first there was esp-basic firmware on this chip,
i flashed R078 from the arduino ide
(where i had to downgrad the pubsubclient-libs to 1.9.1. from actual 1.99.1 to get this working)
:
Hi tozett, I am brand new to Arduino, going to give it a try as I am not making progress with esptool and flash.cmd, downloaded 1.6.7 (on Apple Mac),

a. I see you are using 1.6.5, will I be okay with 1.6.7 ?
b. I assume the reason you downgraded pubsubclient is I see when I try to verify/compile I get many errors quoting pubsubclient as the source.
c. Sorry for asking as Arduino newbe, but how does one downgrade that library? (have googled, do not get anything)
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: More Esp-12 Flashing problems

#49 Post by tozett » 17 Feb 2016, 19:20

hi,
think this should go to an extra thread, but... if help is nedded ;)

the search here is really unusable :x

in the froums the devs said somewhere: stick to arduino 1.6.5 !
http://www.esp8266.nu/forum/viewtopic.p ... =220#p3889

so try to download this.
https://www.arduino.cc/en/Guide/Windows#toc2
1.6.5 -> https://www.arduino.cc/en/Main/OldSoftw ... s#previous
then there are lots of 'nromal' instructiions, how to put libraries into this 1.6.5 ide:
https://www.arduino.cc/en/Guide/Libraries
https://learn.adafruit.com/adafruit-all ... -a-library

downgrading is simply to exchange/delete the lib-folder with the librarie of (wrong :twisted: ) version 1.99.1
and to put there the folder with version 1.9.1

than upload with the ide (also mac there) ...
https://www.arduino.cc/en/Guide/Windows#toc9

ESP easy instructions:
http://www.esp8266.nu/index.php/Tutoria ... are_Upload

check maybe this discussion:
http://www.esp8266.nu/forum/viewtopic.p ... t=10#p4078

or simply stick to this:
http://www.esp8266.nu/downloads/ESPEasy_R78.zip
(or take the .bin from the zip, and use this way: https://learn.adafruit.com/building-and ... h-firmware)

but better read the tutorial ..!!!!
http://www.esp8266.nu/index.php/Main_Page#Tutorials

there is also some more discussion/help in the forum..

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: More Esp-12 Flashing problems

#50 Post by JR01 » 17 Feb 2016, 19:54

tozett wrote:hi,
think this should go to an extra thread, but... if help is nedded ;)
Thank you!!! Now let me get my teeth into this.....
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 28 guests