# EEPROM write on the Sparkfun Thing (ESP8266) (SOLVED)

**URL:** <https://community.sparkfun.com/t/eeprom-write-on-the-sparkfun-thing-esp8266-solved/31344>\
**Category:** Arduino\
**Created:** [August 4, 2015, 8:27pm UTC](https://community.sparkfun.com/t/eeprom-write-on-the-sparkfun-thing-esp8266-solved/31344 "2015-08-04T20:27:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IndianaTux](https://avatars.discourse-cdn.com/v4/letter/i/e8c25b/32.png) [@IndianaTux](https://community.sparkfun.com/u/IndianaTux)\
**Post date:** [August 4, 2015, 8:27pm UTC](https://community.sparkfun.com/t/eeprom-write-on-the-sparkfun-thing-esp8266-solved/31344/1 "2015-08-04T20:27:47Z")

</div>

I’m trying to write to the EEPROM on the Sparkfun Thing (ESP8266). I wrote the following sketch:

```auto
#include <EEPROM.h>
 
void setup()
{
	unsigned char data;
	Serial.begin(115200);
	EEPROM.begin(10);
	data = EEPROM.read(0);
	Serial.println("Go");

	if(data == 0x55)
	{
		Serial.printf("Valid signature found, ...[0x%02x]\n",data);
	}
	else
	{
		Serial.printf("No signature found, writing...[0x%02x]\n",data);
		EEPROM.write(0,0x55);
		EEPROM.commit();
		delay(10);
	}
}

void loop() 
{
	Serial.println("Loop...");
	delay(1000);
}

```

Seems like the data never gets written to the EEPROM

Anything I’m missing ?

---

<div class="post-metadata">

**Author:** ![IndianaTux](https://avatars.discourse-cdn.com/v4/letter/i/e8c25b/32.png) [@IndianaTux](https://community.sparkfun.com/u/IndianaTux)\
**Post date:** [August 5, 2015, 3:47pm UTC](https://community.sparkfun.com/t/eeprom-write-on-the-sparkfun-thing-esp8266-solved/31344/2 "2015-08-05T15:47:51Z")

</div>

Well, for those interested, I opened a ticket on the Generic ESP8266 github and got some exchange:

[https://github.com/esp8266/Arduino/issu … -128024822](https://github.com/esp8266/Arduino/issues/659#issuecomment-128024822)

Removed both installed modules and only installed [http://arduino.esp8266.com/stable/packa … index.json](http://arduino.esp8266.com/stable/package_esp8266com_index.json)

For the Sparkfun Thing (WRL-13231) I selected:

Flash module: DIO

Flash Freq: 80MHz

Upload using: Serial

Flash size: 4M (3M SPIFFS)

And now it seems ok.

First boot gives:

```auto
Go

No signature found, writing...[0xff]
Loop...
Loop..

```

Then subsequent reboot gives:

```auto
Go

Valid signature found, ...[0x55]
Loop...
Loop...

```

Which is what I expected.

Maybe it’s a bug in the Sparkfun fork…
