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
0 answers

initial value to eeprom variable

Hi I'm a beginner in the C Language. when I Initial value to UL variable it give me -1 at first ? how can I Initial value to eeprom variable ? eeprom int UL = 1; eeprom struct User user[10];
1
vote
2 answers

Number of records in 32 kilobytes?

I am considering buying an external EEPROM storage module for my microcontroller. However, it only has 32 kilobytes storage capacity. I'm using this to store records where each record is basically 4 separate numbers ranging between 0 - 180. How many…
Joe
  • 1,762
  • 9
  • 43
  • 60
1
vote
1 answer

EEPROM protocol misconception

I am currently using a michrochip's eeprom ( 24cw160 ) connected with an stm32f4 (11RET) via i2c. The configurations and the connection seem to work as my logical analyzer prints some i2c messages (with ACK) and I can send data and receive data…
Spyros Mourelatos
  • 484
  • 1
  • 8
  • 19
1
vote
1 answer

I2C EEPROM : can write but read only 0xFF

I am currently working on an I2C communication between an i.MX6 (Android BSP) and an 24C08WP EEPROM. I'm running on the i.MX6 a binary previously compiled under an NDK under Linux. I detect the NTAG 5 component connected to the I2C bus (address…
Martin Denion
  • 352
  • 1
  • 3
  • 22
1
vote
1 answer

Multiple write to external eeprom corrupts previous data

I am interfacing AT24C02 external eeprom using stm32f401 nucleo. I am facing few issues. Lets consider some address /* 24c02 Device Address */ #define EEPROM_ADDRESS (uint8_t)0xA0 /*Demo addr*/ #define DEMO_BYTE_ADDR …
Ehsan Habib
  • 135
  • 1
  • 5
  • 12
1
vote
0 answers

C++ ESP8266 returning reference to object populated by EEPROM.get

I've encountered something odd which I don't understand in this code: #include struct Settings { char stringy[24] = "initial"; }; void setup() { Serial.begin(74880); EEPROM.begin(100); Settings s; strncpy(s.stringy, "a…
Andrew Bullock
  • 36,616
  • 34
  • 155
  • 231
1
vote
1 answer

How do I write to a binary file using pixel data from the function "image" the Python Image Library?

I cannot figure out how to do what Ben Eater did. I have the exact same code (different file name) but the error I get is that I cannot use the argument pixels[x,y] for chr() to write to a binary file The video I linked has all the information of…
1
vote
0 answers

Why there is a word address in this I2C example code from FTDI?

I have been working on FTDI FT2232H chip to interface with I2C devices. I have started to learn AN_177 application note pdf. I have no EEPROM to expreience,no oscilloscope to see waveforms. My goal is to comprehend the code itself and taking notes…
hex
  • 21
  • 6
1
vote
0 answers

Arduino won't recognize external EEPROM when using avr lib

I am trying to write data in an external EEPROM using an Arduino MEGA 2560 and 24LC256 Microchip EEPROMs. I cannot use the standard Wire library because my address is 15 bits long and my pages are 64 bytes long but the Wire library only has a 32…
Syntaxeror
  • 11
  • 4
1
vote
1 answer

Arduino esp32: storing array of struct EEPROM

I'm facing a problem can't be able to resolve to store an array of struct in nvs. I have this structure composed of variable length String: typedef struct { String Name; String Surname; String Status; String Expiry; } …
giorgio
  • 105
  • 1
  • 8
1
vote
1 answer

AVR Internal eeprom reading issue

I am using the internal EEPROM of atmega8A using avr's EEPROM library. My code looks like this #define EEPROM_ADDR 0x0A int main(void) { _delay_ms(2000); LED_Initialize(); vBlink_Led(100, 2); …
Devjeet Mandal
  • 345
  • 1
  • 4
  • 23
1
vote
2 answers

How can I dynamically remove or retrigger the probing an EEPROM via sysFS?

I am wondering what the proper way is to remove EEPROMs dynamically. An alternate approach that will also work is telling the device to re-do the probe. I tried just echoing it to delete_device, but that gives an error that it can't find it in the…
Eskimoalva
  • 449
  • 8
  • 20
1
vote
0 answers

ESP32 library conflicts, EEPROM, SPIFFS and IR

Using an Adafruit HAZZAH ESP32, I discovered (the hard way) the well-known conflict between the EEPROM.h and IRremote.h libraries. Causes a memory conflict and a reboot. I tried moving over to using SPIFFS.h and got it working without the IRremote.h…
1
vote
2 answers

Writing a code from EEPROM to an array of char

On the EEPROM the pincode 1234 is written as bytes. Now I want to read out the pincode and write it to an array of type char and print it on the serial monitor, but I only get this rectangles like in the picture. But if I print it directly to the…
1
vote
3 answers

Can't write to M24256 EEPROM using I2C and Arduino

I'm pretty sure it's a minor mistake I've done, but I couldn't figure it out. I'm trying to use an M24256 EEPROM with Arduino Mega2560 via I2C protocol. The datasheet states that the address is 1010(E2)(E1)(E0)(R/W). I left all E pins unconnected,…
balu
  • 111
  • 1
  • 8