Go Down

Topic: EEPROM.read restart the application (Read 309 times) previous topic - next topic

MiteshKhatri

Jul 26, 2017, 01:50 pm Last Edit: Jul 26, 2017, 02:16 pm by MiteshKhatri
Hi,

I am using nrf52832 board. I write below code for read from EEPROM. But my application restarted when this code executed.

 
Code: [Select]

EEPROM.begin();
int address = 0;
  byte value;
  value = EEPROM.read(address);
  Serial.println( "PRINT:");
  Serial.print(address);
  Serial.print("\t");
  Serial.print(value, DEC);
  Serial.println();
  Serial.println("\n-------------------");



So please can any one suggest what I am doing wrong in this.

Only error is in below line:

Code: [Select]
value = EEPROM.read(address);

Thanks
Mitesh

pert

When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

MiteshKhatri


pert

Which hardware package are you using with your board to make it work with the Arduino IDE?

Go Up