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
1
vote
1 answer

Aardvark I2C slave nack issue

I followed the steps in this link: Using the Aardvark with Python on 64-bit Windows I have tried to write and read bytes using command prompt (Write and read from the EEPROM using aai2c_eeprom.py) i.e. when attempting to read by…
selimcan
  • 84
  • 2
  • 9
1
vote
3 answers

Shadow copy for a data structure stored in EEPROM

I am using ARM GCC for a STM32F105RC processor. In my application I have now something like: typedef struct { uint16_t coinValue; uint8_t minimumCoins; } MIN_COIN_RENDERING; typedef struct { uint16_t coinValue; uint8_t hopperType; …
סטנלי גרונן
  • 2,917
  • 23
  • 46
  • 68
1
vote
2 answers

Variable address in eeprom space as function argument in C

I have a simple and quick problem with C in PIC24f16ka102 and xc16 compiler. I want to pass a variable reference to my function. The variable is in eeprom space: int __attribute__ ((space(eedata))) eeData; // Variable located in EEPROM,declared…
cwanish
  • 29
  • 1
  • 8
1
vote
1 answer

EEPROM in AVR doesn't work

I'm a beginner in C language. I'm trying to operate on EEPROM memory in my ATmega 8 and ATtiny2313. Based on this tutorial I've created the following codes: 1) writes a number to place 5 in uC's eeprom #define F_CPU 1000000UL #include…
Lexander
  • 184
  • 2
  • 10
1
vote
1 answer

getting garbage data from external dataflash on STK600

Hello, I am using STK600 and I have written code for external dataflash using SPI. When I read data from dataflash I receive first data byte properly but then afterwards I receive all data bytes as garbage values. The data which I am…
1
vote
1 answer

EEPROM Pic Micro and Arduino Hex file

When retrieving the hex file from either a pic micro or arduino chip, does the hex file contain the EEPROM of that particular chip? Does the hex file only contain the program or the program and EEPROM?
Vann
  • 29
  • 5
1
vote
2 answers

Getting the lower 16 bits of a pointer compile time in GCC

I'm working on an embedded project. I'm trying to use the GNU linker to layout some variables stored in a external eeprom. I do this by assigning the eeprom variable with int __attribute__ ((section (".eeprom"))) eeprom_var1; I've will also to…
aes79
  • 23
  • 4
1
vote
1 answer

C/C++-Library for EEPROM wear-leveling under Linux?

does anybody know of a library for storing data securely in an 8k-EEPROM, which is attached over the I2C-interface? I am especially interested in wear-leveling as I have a write-intensive application where the EEPROM should/must be used as a NVRAM …
Martin C.
  • 12,140
  • 7
  • 40
  • 52
1
vote
1 answer

Read and write to spi eeprom on linux

I want to use my spi eeprom (at25) under debian (Beaglebone Black). I have edited the device tree, so now i can read and write to eeprom. There is already a spi-at25-driver in Linux. Reading from eeprom cat…
arash javanmard
  • 1,362
  • 2
  • 17
  • 37
1
vote
0 answers

Trouble in writing to Internal EEPROM- PIC16F684

In a Home security alarm system, we have a remote control armed with PT2440 with Fixed encoding (no hop coding, no encryption/decryption) and a central receiver system armed with MCU: PIC16F684. I must use the internal EEPROM (256 bytes). After a…
1
vote
1 answer

Store a long variable in EEPROM

My problem is the following: I like to store data in an EEPROM like char errorflag[] = "1234567"; i2c_eeprom_write_page(0x50, 0, (byte *)errorflag, sizeof(errorflag)); Perfect, no problems so far. But how can I save a long stored in a variable…
user3281341
  • 79
  • 1
  • 6
1
vote
3 answers

how to erase single page of m25p40 flash without erasing other pages?

I am using m25p40 flash memory with jn5148 MCU.In datasheet of this flash , it is written that: Erase capability: Sector erase: 512Kb in 0.6 s (TYP) Bulk erase: 4Mb in 4.5 s (TYP) I am facing problem in overwriting data stored in one page of…
1
vote
1 answer

Wire High&Low Address

With regards to Arduino EEPROM when writing and reading to certain EEPROM devices it asks for a transmission of the following…
Jister13
  • 149
  • 1
  • 13
1
vote
1 answer

arduino error: expected initializer before * token

#include #include template int EEPROM_writeAnything(int ee, const T& value) { const byte* p = (const byte*)(const void*)&value; int i; for (i = 0; i < sizeof(value); i++) EEPROM.write(ee++, *p++); …
Mayjahn
  • 11
  • 1
  • 2
1
vote
2 answers

How to read from I2C EEPROM from Linux kernel - ARM TI AM3352

On my board I have an I2C EEPROM that stores configuration information. UBoot reads it using the read_eeprom function shown below. I would also like to access this information from inside the Linux kernel so that my /proc/cpuinfo output shows…
fred basset
  • 9,774
  • 28
  • 88
  • 138