Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INTERNAL_EEPROM_PORT undefined. #1

Open
heidnerd opened this issue Feb 27, 2024 · 3 comments
Open

INTERNAL_EEPROM_PORT undefined. #1

heidnerd opened this issue Feb 27, 2024 · 3 comments

Comments

@heidnerd
Copy link

The PCF8563_RTC will not compile in the arduino IDE,

Around line 270 in the pcf8563.cpp the following code exists.

void PCF8563Class::initialize (void)
{
	INTERNAL_EEPROM_PORT.begin();
	initialized = true;
}

The result when a compile is attempted is:

ibraries\PCF8563_RTC\src\PCF8563.cpp:371:3: error: 'INTERNAL_EEPROM_PORT' was not declared in this scope
INTERNAL_EEPROM_PORT.begin();

The MCU is a SAMD processor on an Adafruit QT board.

I can't find a declaration for the "INTERNAL_EEPROM_PORT" in the PCF8563.h file either.

Is there a typo? Or missing include. The error occurs on all of the examples included with the library. (SetEpoch for example).

Arduino IDE is 1.8.19

@AMSAlexM
Copy link

The PCF8563_RTC will not compile in the arduino IDE,

Around line 270 in the pcf8563.cpp the following code exists.

void PCF8563Class::initialize (void)
{
	INTERNAL_EEPROM_PORT.begin();
	initialized = true;
}

The result when a compile is attempted is:

ibraries\PCF8563_RTC\src\PCF8563.cpp:371:3: error: 'INTERNAL_EEPROM_PORT' was not declared in this scope INTERNAL_EEPROM_PORT.begin();

The MCU is a SAMD processor on an Adafruit QT board.

I can't find a declaration for the "INTERNAL_EEPROM_PORT" in the PCF8563.h file either.

Is there a typo? Or missing include. The error occurs on all of the examples included with the library. (SetEpoch for example).

Arduino IDE is 1.8.19

I have come across this issue too, but it doesn't happen when I actually upload to the P1AM-200 module that the library is made for. It only happens when I compile without being connected to the P1AM-200 board or having the board selected.

@goedzo
Copy link

goedzo commented Sep 5, 2024

I am using a lilygo t-echo and run into the same issue. Cannot compile:

libraries\PCF8563_RTC\src\PCF8563.cpp: In member function 'void PCF8563Class::initialize()':
libraries\PCF8563_RTC\src\PCF8563.cpp:371:3: error: 'INTERNAL_EEPROM_PORT' was not declared in this scope; did you mean 'INTERNAL_RTC_PORT'?
371 | INTERNAL_EEPROM_PORT.begin();
| ^~~~~~~~~~~~~~~~~~~~
| INTERNAL_RTC_PORT

@goedzo
Copy link

goedzo commented Sep 5, 2024

I was able to compile it doing this:

Open the file PCF8563.cpp located in c:\Users\xxx\Documents\Arduino\libraries\PCF8563_RTC\src\.
Look for line 371 where it says:

INTERNAL_EEPROM_PORT.begin();

Replace this line with:

INTERNAL_RTC_PORT.begin();

Save the file and try compiling your code again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants