energia/Energia

Energia 18 on Linux EEPROMInit() not defined

Opened this issue · 1 comments

Hi,

I have problem compiling project using EEPROM functions on Linux (Ubuntu 16).

Sample code:

#include <SPI.h>
#include <EEPROM.h>
....
void readConfig() {
    EEPROMInit(); // EEPROM start
    EEPROMRead((uint32_t *)&config, CONFIG_ADDRESS, sizeof(config));
}

The same project compile on Mac and Windows without any issues, but on Linux I got:

accontrol:489: error: 'EEPROMInit' was not declared in this scope
     EEPROMInit(); // EEPROM start
                ^
accontrol:490: error: 'EEPROMRead' was not declared in this scope
     EEPROMRead((uint32_t *)&config, CONFIG_ADDRESS, sizeof(config));

Configuration
Energia: 1.6.10E18 (Linux), Board: "LaunchPad (Tiva C) w/ tm4c129 (120MHz)"

THX
Goran

OK, I solve this issue ...
Problem is in case sensitivity on Linux.
EEPROM.h is not working, but eeprom.h is working as expected. So, above sample shall be:

#include <SPI.h>
#include <eeprom.h>
....
void readConfig() {
    EEPROMInit(); // EEPROM start
    EEPROMRead((uint32_t *)&config, CONFIG_ADDRESS, sizeof(config));
}

I will test other libraries as well and post it here and close this issue.

Goran