Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9868 Discussions

EEPROM library with Galileo Gen 2

FSpan
Novice
1,748 Views

Hi,

I've got a problem with the EEPROM library on Intel Galileo.

When I try to use the EEPROM.put() function, it gives me the error:

'class EEPROMClass' has no member named 'put'

It seems that the library doesn't work properly on Galileo 2, because I used the same library on Arduino Uno and it worked.

Do you have another library for Galileo?

Thanks in advance.

1 Solution
Diego_V_Intel
Employee
157 Views

Hi FabioCRS4,

The EEPROM library works in Galileo, however it's not the same library as the one used with the Arduino boards. The EEPROM library that is compatible with Galileo only has two methods:

  • read()
  • write()

And there are only three examples that you can run:

  • eeprom_clear
  • eeprom_read
  • eeprom_write

The original EEPROM library is used to manage the internal EEPROM memory of the ATmega used in the Arduino boards. Galileo doesn't have that EEPROM memory so the original library is not compatible with Galileo. The version of the EEPROM library that is compatible with Galileo only includes the two main functions used with memories: read and write. That's why you got that error, because you are trying to use the put() method which is not available in the EEPROM library for Galileo.

Unfortunately there isn't another EEPROM library for Galileo that includes more methods.

Regards,

Diego

View solution in original post

2 Replies
Diego_V_Intel
Employee
158 Views

Hi FabioCRS4,

The EEPROM library works in Galileo, however it's not the same library as the one used with the Arduino boards. The EEPROM library that is compatible with Galileo only has two methods:

  • read()
  • write()

And there are only three examples that you can run:

  • eeprom_clear
  • eeprom_read
  • eeprom_write

The original EEPROM library is used to manage the internal EEPROM memory of the ATmega used in the Arduino boards. Galileo doesn't have that EEPROM memory so the original library is not compatible with Galileo. The version of the EEPROM library that is compatible with Galileo only includes the two main functions used with memories: read and write. That's why you got that error, because you are trying to use the put() method which is not available in the EEPROM library for Galileo.

Unfortunately there isn't another EEPROM library for Galileo that includes more methods.

Regards,

Diego

View solution in original post

FSpan
Novice
157 Views

Thank you DiegoV_Intel, your answer has been very useful!

Reply