EEPROM.read restart the application

Hi,

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

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:

value = EEPROM.read(address);

Thanks
Mitesh

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).

There is no any error displayed.

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