Questions tagged [eeprom]

Anything related to Electrically-Erasable Programmable Read Only Memory (EEPROM), a kind of non-volatile electronic memory technology. EEPROMs can be programmed and erased using only electrical signals and maintain their content also in absence of power supply. The now ubiquitous Flash memory is a specialized form of EEPROM. QUESTIONS ON STACK OVERFLOW MUST BE PROGRAMMING-RELATED, for other types of questions, post on another Stack Exchange site.

Anything related to Electrically-Erasable Programmable Read Only Memory (EEPROM), a kind of non-volatile electronic memory technology. EEPROMs can be programmed and erased using only electrical signals and maintain their content also in absence of power supply. The now ubiquitous is a specialized form of EEPROM.

See Wikipedia page on EEPROMs.

329 questions
18
votes
7 answers

How to use Backup SRAM as EEPROM in STM32F4

There are two ways of emulating EEPROM on the STM32F4: On-chip 4 Kbytes backup SRAM On-chip Flash, with specific software algorithm The second option is described here: AN3969. But google, unfortunately, hasn't been able to provide information…
Jolle
  • 1,336
  • 5
  • 24
  • 36
11
votes
2 answers

Safely storing and accessing EEPROM

I've recently established the need to store infrequently-updated configuration variables in the EEPROM of a microcontroller. Adding state to the program immediately forces one to worry about detection of uninitialized data in EEPROM (i.e. first…
Michael Koval
  • 8,207
  • 5
  • 42
  • 53
11
votes
2 answers

Is there a general algorithm for microcontroller EEPROM wear leveling?

I'm working on an Arduino library that will maximize the life of the AVR's EEPROM. It takes the number of variables you want to store and does the rest. This is my attempt, which does not work in all cases. Background information Atmel says each…
Nabil
  • 343
  • 3
  • 8
8
votes
1 answer

EEPROM emulation on stm32 using HAL drivers

I am trying to emulate EEPROM on stm32f0. There is an application note provided by STM. In the sample main.c, int main(void) { /*!< At this stage the microcontroller clock setting is already configured, this is done through SystemInit()…
user6064424
6
votes
5 answers

Reading and writing EEPROM via I2C with Linux

I trying to read and write an Atmel 24C256 EEPROM with a Raspberry Pi B+ over I2C, but I'm having trouble getting it all to work right. Here is the code I have so far: #include #include #include #include…
Jacob Calvert
  • 188
  • 1
  • 2
  • 11
5
votes
2 answers

Write String to permanent flash memory of Arduino ESP32

I want to write some text into the flash memory of an Arduino ESP32. It works kinda but not as I want it to. void writeString(const char* toStore, int startAddr) { int i = 0; for (; i < LENGTH(toStore); i++) { EEPROM.write(startAddr + i,…
DrEichenbach
  • 382
  • 1
  • 2
  • 13
5
votes
1 answer

Does `Signature.init()` rewrite persistent memory?

A few quotes from Java Card API 2.2.1: Signature class description: A tear or card reset event resets an initialized Signature object to the state it was in when previously initialized via a call to init(). For algorithms which support keys…
vojta
  • 5,591
  • 2
  • 24
  • 64
5
votes
3 answers

Is it worth to implement small filesystem for an EEPROM

I have bought an I2C EEPROM. I want to store sensor and voltage data. I'm assuming that value can be bigger than one byte, and there can be a lot of data. Is it worth is such case to implement a filesystem with small file allocation table? It would…
Over Killer
  • 507
  • 9
  • 24
5
votes
3 answers

EEPROM parameters structure for small embedded device

The main issue I am addressing in the small embedded device redesign (PID controller) is the device parameters storage. The old solution I partially present here was space efficient, but clumsy to maintain when new parameters were added. It was…
Drazen Cika
  • 291
  • 2
  • 8
4
votes
2 answers

Writing to EEPROM PIC?

I'm working on a project in which i need to be able to store a value to the PIC's EEPROM, I have managed to get the read to work but so far i am unable to get the PIC to write to the memory using PIC assembly. This is the code that i have been using…
Sam Castledine
  • 105
  • 1
  • 2
  • 9
4
votes
1 answer

Why does first address equal 0000 when .org 8000 in assembly?

I watched Ben Eater's video about building a computer based on 6502 chip and I'm stuck in part 3 (Assembly language VS Machine code). He is programming 32k EEPROM and he programmed by assembly to blink LED. This is assembler he used…
Heroz
  • 143
  • 2
4
votes
1 answer

How to avoid globals in EEPROM structs for system settings?

I'm struggling with getting system settings from EEPROM and trying to avoid having them as global variables and wondered what the prevailing wisdom is and if there's an accepted practice and / or elegant solution. I'm getting system settings stored…
4
votes
1 answer

Can read/write EEPROM address however can only read/write first memory page

EDIT: I was a BIT confused about the BITS and BYTES, documention specify bits and not in bytes and read the bits as bytes. This explains my error. Why manufacturers use bits instead of bytes to specify capacity? it is a BIT confusing. ;-) I found…
Codebeat
  • 6,501
  • 6
  • 57
  • 99
4
votes
2 answers

M95128-W EEPROM. First byte of each page not writing or reading correctly

I am working on a library for controlling the M95128-W EEPROM from an STM32 device. I have the library writing and reading back data however the first byte of each page it not as expected and seems to be fixed at 0x04. For example I write 128 bytes…
Daniel Beyzade
  • 107
  • 1
  • 10
4
votes
1 answer

Checksum algorithm reverse engineering

I've been analyzing some SPI EEPROM memory, and tried to find out which Checksum algorithm has been used; For example I've got data: 14567D9h and checksum 187h. Assuming it's normal 16 bit check sum I've got 86h - no match, but after adding 101h it…
1
2 3
21 22