How come different sketch sizes for same hardware

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
jobst
Normal user
Posts: 22
Joined: 19 Mar 2018, 12:05

How come different sketch sizes for same hardware

#1 Post by jobst » 29 Feb 2020, 13:32

Hi
I am trying to update all of my Sonoff devices, I bought all of them a couple of years ago.
All but ONE I was able to update.

Most of them have this:

Code: Select all

 Flash Chip ID:	Vendor: 0xEF Device: 0x4016
 Flash Chip Real Size:	4096 kB
 Flash IDE Size:	4096 kB
 Flash IDE speed:	40 MHz
 Flash IDE mode:	DIO
 Sketch Size:	782 kB (2288 kB free)
But one has this (cannot update)

Code: Select all

Flash Chip ID	Vendor: 0xEF Device: 0x4016
Flash Chip Real Size:	4096 kB
Flash IDE Size:	4096 kB
Flash IDE speed:	40 MHz
Flash IDE mode:	DOUT
Sketch Size	547 kB (328 kB free)
Can this be fixed somehow?
Like install a base firmware?
Or wipe it and re-install?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: How come different sketch sizes for same hardware

#2 Post by grovkillen » 29 Feb 2020, 15:19

That one got a 1MB memory?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: How come different sketch sizes for same hardware

#3 Post by TD-er » 29 Feb 2020, 16:19

Differences I see in your output is DIO vs. DOUT.
And the reported chip size is 4M, so I guess it is a Sonoff POW or POW-r2?
Most Sonoff ones have 1M chip and some use ESP8266 or ESP8285. (different chip)

I thought we were building for the slowest of both DIO/DOUT (have to check which one is the slowest), so it should work on all modules.

jobst
Normal user
Posts: 22
Joined: 19 Mar 2018, 12:05

Re: How come different sketch sizes for same hardware

#4 Post by jobst » 01 Mar 2020, 01:49

grovkillen wrote: 29 Feb 2020, 15:19 That one got a 1MB memory?
sorry for the later reply, I am on the other side of the planet.

No, it has four.
I bought a bunch of 4MB and replaced them on all of my boards.

jobst
Normal user
Posts: 22
Joined: 19 Mar 2018, 12:05

Re: How come different sketch sizes for same hardware

#5 Post by jobst » 01 Mar 2020, 02:02

TD-er wrote: 29 Feb 2020, 16:19 Differences I see in your output is DIO vs. DOUT.
And the reported chip size is 4M, so I guess it is a Sonoff POW or POW-r2?
Most Sonoff ones have 1M chip and some use ESP8266 or ESP8285. (different chip)

I thought we were building for the slowest of both DIO/DOUT (have to check which one is the slowest), so it should work on all modules.
It is a Sonoff, originally with 1MB, I resolderd 4MB chips on all of my modules.

I got this on m table, I could flash it using FlashESP8266.exe which changed the setting to DIO.
Now it shows

Code: Select all

Sketch Size:	782 kB (2288 kB free)
SPIFFS Size:	934 kB (860 kB free)
so I guess THAT was the problem.

My only problem is the location of my SONOFFs ... some are hard to get to - this one in particular.

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests