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
3
votes
2 answers

C18: Do unused library functions consume space in EPROM?

Library.h void Foo1(void); // Unused int Foo2(int, int); // Used char Foo3(char); // Unused main.c // ... #include "Library.h" // ... void main(void) { int ret; // ... ret = Foo2(3, 7); // ... } I have a library…
hkBattousai
  • 10,583
  • 18
  • 76
  • 124
3
votes
1 answer

Linux: Instantiate from user-space : eeprom new_device

Environment : x86 / Ubuntu 14.04 I want obtain something similar to &i2c0 { eeprom: eeprom@50 { compatible = "at,24c32"; reg = <0x50>; }; }; But because in x86 no Device Tree is available, I am follow…
Peio
  • 43
  • 2
  • 8
3
votes
2 answers

Why are different pointers and void pointers being used by these functions?

I have an ATMega328 and I'm using the functions to use the inbuilt EEPROM. I can use the EEPROM correctly but I don't understand the function arguments I pass to the EEPROM functions. For example, to write different types of data I…
CS Student
  • 1,613
  • 6
  • 24
  • 40
3
votes
1 answer

STM32F0 I2C HAL save struct to I2C EEPROM

I need to save a struct: struct { uint16_t value; uint16_t flag; } status; into an external I2C EEPROM using HAL_StatusTypeDef HAL_I2C_Mem_Write (I2C_HandleTypeDef * hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *…
danstm
  • 53
  • 1
  • 7
3
votes
2 answers

Writing and Reading data to EEPROM sequentially

I am working on my college project which needs to store data in EEPROM of AtMega32. I am able to write and read data at any particular location of memory. But when I try to write data sequentially form address 0 to 1023 I am getting wrong…
Ravi Sharma
  • 63
  • 2
  • 12
3
votes
2 answers

How to store data and program permanently in an FPGA?

From what I surfed, once the power goes off in an FPGA you've to program it again. But I'm trying to implement an FPGA based security system using verilog. In that, I want the password of the system to be permanently stored i.e. even when the power…
3
votes
1 answer

GCC compiles EEPROM addresses in reverse order

I have a code for ATmega written in C and compiled with GCC compiler. Some data need to be stored in EEPROM so I add these declarations: After I read EEPROM I found that data placed in some weird way. After some investigation I found this text in…
Vlada Katlinskaya
  • 991
  • 1
  • 10
  • 26
3
votes
3 answers

Check if char array is not garbage? (valid chars)

I have a char array in which reads data from some EEPROM device, in hardware, and if there is no data in there, its value can be anything (garbage). I would like to check if his value is not garbage and have some valid chars. …
Curnelious
  • 1
  • 16
  • 76
  • 150
3
votes
2 answers

Symptoms of EEPROM damage

Suppose there is a bug in a Java Card applet: a temporary byte array is stored in EEPROM instead of RAM. Moreover, suppose this byte array is overwritten with each APDU. This bug should damage the card sooner or later. What symptoms could we expect?…
vojta
  • 5,591
  • 2
  • 24
  • 64
3
votes
3 answers

Changing slave address of mlx90614 with bcm2835 via SMBus / I2C

How do I change slave address of mlx90614 with bcm2835 library? I've tried following code... int main() { // Buffer, where I store data which I'll send unsigned char buf[6]; // bcm2835 i2c module intialisation code bcm2835_init(); …
TukeV
  • 641
  • 2
  • 6
  • 13
3
votes
2 answers

Looking for user manual or eeprom instructions set for PN544 NFC chip

i would like to use the mfoc library with my Galaxy Nexus phone but some methods are missing in the NFC Android API. So I would like to implement those methods and build my own ROM. With the NFC pn512 chip, it was possible to switch off the…
Gregoire
  • 117
  • 4
2
votes
0 answers

Why doesn't vasm6502's .org directive place the value at the expected address?

Consider the following vasm6502 oldstyle code: .org $8000 ;Set the start address lda #%11111111 ;Prepare data all pins to output on PORTB sta %0110000000000010 ;Set all pins to output on PORTB lda #%10101010 ;Prepare data all pins high on…
Georgi Peev
  • 912
  • 1
  • 14
  • 25
2
votes
2 answers

Storing structs in EEPROM using some kind of file allocation table

I have a problem with storing data in an EEPROM on a Fujitsu 16-bit microcontroller. Writing bytes to the EEPROM is not the problem, I can write and read data bytewise with no problem. We are using an enum of dwords to store different variables in…
Fritjof
  • 21
  • 1
  • 2
2
votes
1 answer

STM32L151 on-chip EEPROM write time

When I apply these function on my code, I can write and read data on STM32 on-chip EEPROM. #define EEPROM_BASE_ADDR 0x08080000 #define EEPROM_BYTE_SIZE 0x03FF . //Byte write void EEPROM_WRITE(uint16_t BiasAddress, uint8_t *Data, uint16_t…
Gkhan
  • 103
  • 1
  • 9
2
votes
1 answer

Reading a 32k i2c eeprom from userland

I need to read an eeprom in an embedded device. So far this "almost" worked: #include #include #include #include #include #define READ_SIZE (256) #define NB_PAGES (128) void…
Zibri
  • 9,096
  • 3
  • 52
  • 44
1
2
3
21 22