Questions tagged [eeprom]

Electronically Erasable ROM is a type of memory available on most boards. It is used for storing persistent data. Use the tag for questions about the EEPROM library or the hardware.

Filter by
Sorted by
Tagged with
6
votes
4answers
16k views

Can you access the EEPROM of an ATtiny with Arduino Code?

I'm attempting to reduce the amount of RAM being used by my program by writing some values to the EEPROM of my micro controller. I'm currently programming on the ATtiny85 which has 512 Bytes of EEPROM....
0
votes
1answer
29 views

Store & retrieve parameters after sketch update

I have a Generic code for some IOT devices which vary in some parameters ( lets say it is only its MQTT name and subscriptions). Since I use OTA to update sketch, I'm looking for a way to A) write ...
13
votes
5answers
69k views

How to read and write EEPROM in ESP8266

I need to know how I can write integer values in EEPROM and retain the value on power on. char *Red = strstr(myTestUrl, "/R"); if (Red) { int RedValue = atoi(Red + 2); analogWrite(12, RedValue); ...
-1
votes
1answer
40 views

EEPROM not consistent over reboot

I'am using a Wemos D1 mini V3.0.0 (esp 8266 core). I tried to save a structure in EEPROM memory but all data are lost when i reboot the board. I am using these basics functions : int cle_verif = ...
0
votes
1answer
50 views

Junk values in EEPROM. while writing large values

Facing an issue while writing a large value (like 2000-5000) to EEPROM using EEPROM.put(). For example, While writing 2000 values to address 5 of EEPROM. Some junk values are written automatically to ...
0
votes
1answer
28 views

Error while inputting EEPROM.read() and EEPROM.write()

I am trying to store data in ATmega328 (Arduino Uno) using the following code using tinkercad: #include <EEPROM.h> void setup() { int addr, data=1; Serial.begin(9600); for (addr=0; addr&...
0
votes
1answer
70 views

Need help with EEPROM not storing array values on ESP8266 after restart

I am struggling through a program. I am trying to store my uploaded string into an array then write that array to EEPROM. I run the program, upload the new array and store it in the EEPROM. all values ...
1
vote
3answers
1k views

Spiffs vs Eeprom on esp8266

In my project, i have some data to save permanently. After some research i got many examples and informations to do that with eeprom. I used it effectively. After all i decide to deep dive to esp8266 ...
0
votes
0answers
42 views

NodeMCU EEPROM Stored Datas Deleted Suddenly

In my project i am using nodemcu board.It is clone of Adafruit's huzzah. Last days i faced a problem about eeprom. 1- I have some data and i have to save this datas on eeprom. 2- Data types are ...
0
votes
2answers
77 views

the use of the Arduino's EEPROM

I want to know the purpose of using the EEPROM because I can't get it, I mean I know that it can store values for a long time, but I just can't get the goal here #include<EEPROM.h> void setup() ...
0
votes
2answers
43 views

Arduino Uno SD card storage

I am interested in storing accelerometer data to an SD card. Since power consumption is the main consideration of my project, it is important to do as few writes to the SD as possible, because the SD ...
0
votes
0answers
39 views

How to use NVM or EEPROM on SAMD51?

I had to upgrade to Arduino Grand Central M4 ( running SAMD51 ) due to large code and demanding memory . I know SAMD51 does not have a classic EEPROM but it still has NVM for user data storage between ...
1
vote
3answers
69 views

Arduino Mega keep states after reprogramming

Based on: https://forum.arduino.cc/index.php?topic=440978.0 And some previous experience with Arduinos. What I would like to accomplish here is that I have a 8 channel relay board with the relays in ...
0
votes
2answers
53 views

store multiple of float type on EEPROM

I have 7 float variables. float temperature, differential, calibration,hta,lta,hha,lha; I want to store them all on the EEPROM memory, how do I calculate the addresses given that there type is ...
0
votes
0answers
28 views

ESP8266 EEPROM Reading extra character

I am very very new to ESP Programming. I am trying to store Strings into EEPROM of ESP8266. I am storing the string into eeprom successfully but while reading it from EEPROM extra character 'd' is ...
3
votes
2answers
5k views

How to read/write variables persistenly on Arduino Due (no EEPROM/shield)?

I am relatively new to Arduino and I am currently writing some code to control a relay board. The on/off times are provided by the user at run-time and should be stored persistently (EEPROM or flash) ...
0
votes
1answer
144 views

Managing configurations via EEPROM by writing it with the hex file

I've been looking into I2C bootloaders for an ATTINY coprocessor on a board I'm developing, and I ran into a bit of a snag. I have the need to detect what board the main processor's code is running on,...
0
votes
0answers
82 views

Write to EEPROM takes too much time

I wrote this simple function to store some parameters into the EEPROM, using the STM32Duino core: #define BASE_ADDRESS 64 typedef struct { float a; float b; float c; } settings_t; ...
0
votes
2answers
79 views

How can I save my float 'ave' on the EEPROM continuously?

How can I save my output continuously to EEPROM? Or is this even possible? Please help me out. void setup() { Serial.begin(9600); } void loop() { static unsigned long count = 0; static float ...
0
votes
1answer
139 views

make EEPROM.h use custom eeprom partition

I created the below partition table for an esp32 and replaced the 'default_8MB.csv' with it. # Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x5000, otadata, data, ...
21
votes
5answers
28k views

What is the real lifetime of EEPROM?

ATMEL says the cell lifetime of an EEPROM cell is about 100,000 write cycle/ cell. Is this actually how the EEPROM performs in the wild? If I do not change the value of a cell, does this stress the ...
0
votes
2answers
65 views

EEPROM page rotates while writing to it

The following code intends to read from serial port and write the data byte by byte to a 24LC01B EEPROM. // 24LC01B PINS // Pin 1, A0: float // Pin 2, A1: float // Pin 3, A2: float // Pin 4, VSS: GND ...
0
votes
3answers
1k views

Using EEPROM Anything in loop()

I'm trying to make a programm for Arduino Bluno Beetle, that saves a string in the loop. Here is my code: #include <EEPROM.h> #include <EEPROMAnything.h> struct config_t{ String ...
1
vote
2answers
6k views

Clearing EEPROM

I'm trying to clear my EEPROM and am using this code: #include <EEPROM.h> void setup() { // write a 0 to all 4096 bytes of the EEPROM for (int i = 0; i < 4096; i++) EEPROM.write(i, 0); ...
0
votes
1answer
34 views

Initalizing library object in own library

EDIT: @Juraj fixed the Issue, changes at the end of the post I am developing an application to program OneWire ID Chips. I am using the OneWire library (https://github.com/PaulStoffregen/OneWire) and ...
0
votes
0answers
99 views

Stuck in a loop when reading from EEPROM, works if I clear it first

EDIT: The problem was caused by storing a pointer in the EEPROM. Thanks to @KIIV for helping out Sorry for the enormous of wall of text, I'm trying to pare it down a bit. I have two Arduino Megas ...
0
votes
1answer
121 views

Esp32: upload eeprom file

I'd like to flash the eeprom sector with content so that the eeprom already holds data when it boots the first time. How do I upload such an eeprom file like I would do with avrdude on an atmega? Is ...
2
votes
2answers
380 views

EEPROM.get returns bad data

I am using the attached code. What I am trying to do is: Test if there is a personalized "board serial number" written in the EEPROM (by previous code run) If data found was not 7 characters (e.g SN-...
0
votes
1answer
82 views

Can you use an Arduino UNO as an EEPROM programmer

Hi I have an Arduino UNO and a AT28c64B and a single shift register, is it possible to make an EEPROM programmer with it? I’m not too good with the Arduino to do a lot of trial and error... I would ...
0
votes
1answer
52 views

EEPROM Capability [closed]

I'm new to this platform and actually this is my first question on here.So I can read and write any figures in Arduino EEPROM apparently and it works as expected. Is it possible to do a comparison to ...
1
vote
1answer
446 views

Reading and comparing data from Arduino Uno EEPROM

I'm trying to read compare data from EEPROM (Arduino UNO). Reading is working fine but comparing it using the '==' operator is not working as expected. //string 'True' is already stored in EEPROM ...
0
votes
1answer
359 views

Why does my 16x2 LCD displays weird letters and can't insert key from keypad?

I'm a newbie on Arduino here, and this is my first project on 16x2 LCD, 4x4 keypad and others. So, the story is, after I uploaded the program for my group's Arduino alarm clock to the Arduino board, ...
2
votes
1answer
59 views

EEPROM: managing address mapping between firmware versions

Is there a common way to handle changes in the mapping between eeprom addresses and variables between firmware versions? It's not about the eeprom memory to survive the update, but to be(come) ...
0
votes
2answers
285 views

ESP8266 using EEPROM to store a value of 100,000

I'm using Wemos mini in my project. I wish to store a Boolean value in cell #0, which changes every boot. Since writing to EEPROM is limited to roughly 100,000 cycles - I want to store in cell #1 the ...
0
votes
1answer
66 views

Header file or library to test i2c FRAM?

I found a header file to test a i2c eeprom 24LC256, but I used this to test my eeprom CAT24C32.The test sketch works fine. I modified the line BLOCKSIZE 8 because my eeprom have 32byte page write only....
1
vote
1answer
84 views

Reading from EEPROM and combining

I'm trying to read from the EEPROM and combine the information and send it out over SoftwareSerial using write() function but i'm getting the following error error: invalid operands of types 'const ...
1
vote
2answers
457 views

Save Data before Shutdown

I am building a positioner and I store the current position to EEPROM when the move is complete. On start up, I want the positioner to return to the HOME position. I am running an UNO powered from the ...
-1
votes
1answer
116 views

esp8266 esp01s EEPROM and flashing

which flash option do I need to take to use EEPROM? Can I flash with 1MB and no SPIFFs and still write data to EEPROM? thanks T
-2
votes
1answer
123 views

Write and read problem while interfacing 93LC46B EEPROM through SPI

I try to save and read data from 93LC46B EEPROM using SPI with Arduino UNO. I'm following this article https://www.arduino.cc/en/Tutorial/SPIEEPROM . So far I have correctly connected EEPROM pinout (...
1
vote
1answer
63 views

about how to share one External serial EEprom using two microcontrollers?

strong texti have Vector nav100 IMU sensor that sends data serially UART.I want to receive data from it using ATmega32 and then store data in AT24c1024 EEprom using I2C,then using another ATmega32 to ...
0
votes
0answers
64 views

I can't write or read data in an external eeprom

I've been trying to store data in an external I2C EEPROM but it doesn't seem to work, and i don't know why. When i run the i2c scanner it founds my memory but i can't write in it, or at least it ...
1
vote
1answer
87 views

about how to write data in the whole EEprom?

I have interfaced AT24c1024 EEprom with ATmega32.AT24c1024, which has 512 pages each of 256 bytes. There are two mode of writing (byte write and page write). In page write mode, it is capable of ...
-3
votes
1answer
54 views

Rate of serial communication (UART) of a sensor is faster than speed of processing of microcontroller

I have a Vector Nav VN100 IMU sensor that sends data serially UART. I have interfaced it with ATmega32. It receives data (ROLL angel) from the sensor and according to the ROLL angel, it controls a ...
1
vote
0answers
51 views

EEPROM Esp8266 Memory Issue

I had assembled a board with esp8266ex bare chip with 4MB eeprom for esp and also can be shared with host MCU. I had gone through some googling and found that using eeprom function I am able to write ...
0
votes
1answer
75 views

Insane heat development with ESP8266

I have a ESP8266 on a Wemos D1 mini board. Simple "Rainbow with FastLED" animation. Shouldn't do much but the board gets so hot I can't touch it and it drains a 2500mAh battery in less than an hour. ...
0
votes
2answers
41 views

Calculate statistic in EEPROM

I've search on how to do statistic calculation in EEPROM, but non related. The data that I stored in EEPROM is body temperature. Currently I stored the data using float. Below is my code for data ...
0
votes
1answer
137 views

How to write a float value EEPROM

I'm using this library for my DS3231 which have a Atmel 24C32 on it. i have a float value which increases by 0.5, like: 27.50 28 28.50 ... the code is like this: float lowTemp= 10.5 float ...
0
votes
1answer
348 views

DS3231 and EEPROM

Currently to get time/date i'm using DS3231 module with the RTClib library, i want to use the Atmel 24C32 chip on the module to store some small values (temperature etc). Can i use the current ...
2
votes
1answer
47 views

Is it possible to execute a code in runtime when gets updated over the air (OTA)?

I would like to build a lib like ArduinoOTA but with no downtime at runtime. To achieve that I am wondering if it is possible to create a simple setup and loop code to Check for new releases If we ...
1
vote
0answers
2k views

save bytes from Serial into ROM (EEPROM)

I am trying to save an incoming text from serial into the ROM of the Arduino using EEPROM. I found out that you can only save a byte at once. So I thought I could do it like that: #include <EEPROM....