Go Down

Topic: ECCX08 as EEPROM alternative (Read 1 time) previous topic - next topic


I found this: https://forum.arduino.cc/index.php?topic=595563.0 

Did somebody try this?

I really would like to store some integers on different slots and read them out later on.
Any sugestions?

Thanks in advance

I am now  writing on the flash to store data.....

Code: [Select]
#include <ArduinoECCX08.h>
byte data[4]={0,24,35,37};

void setup() {
  while (!Serial);

  if (!ECCX08.begin()) {
    Serial.println("Failed to communicate with ECC508/ECC608!");
    while (1);

  if (!ECCX08.locked()) {
    Serial.println("The ECC508/ECC608 is not locked!");
    while (1);

ECCX08.writeSlot(10, data, sizeof(4));


Serial.println(ECCX08.readSlot(10, data, sizeof(4)));


void loop() {
//  Serial.print("Random number = ");
// Serial.println(ECCX08.random(65535));



FlashAsEEPROM works very well but do consider the limits of Flash, 100K cycles I believe.

Go Up