khoih-prog / RP2040_RTC

This library enables you to use RTC from RP2040-based boards such as Nano_RP2040_Connect, RASPBERRY_PI_PICO. This RP2040-based RTC, using Interrupt, has no battery backup. Time will be lost when powered down. To need NTP-client to update RTC every start-up.
MIT License
23 stars 4 forks source link

Get a compiler error when using an example #5

Closed sweshn closed 2 years ago

sweshn commented 2 years ago

Describe the bug

Get a compiler error when using an example

Steps to Reproduce

load sketch: RP2040_RTC_Time.ino compile

Expected behavior

no error

Actual behavior

compiler error

Screenshots

ERRORTEXT: ::clock' has not been declared using ::clock;

Information

Please ensure to specify the following:

Example

Additional context

I have just started to use RP2040 so it can be a "user" error

khoih-prog commented 2 years ago

Hi @sweshn

Thanks for your interest in the library.

Be confident from now on that you've done nothing wrong. The real issue is that I forgot to update this RP2040_RTC Library after breaking change in Timezone_Generic releases v1.8.0, on which this library depends.

I've just updated and published the Timezone_Generic releases v1.9.0 to make compatible to old code.

So now you just update to Timezone_Generic releases v1.9.0 and you will be OK.

Regards,


PS:

If you still have other issue, I suggest you use the stable Arduino IDE 1.8.19+ for Arduino. GitHub release, instead of Arduino IDE version v2.0.0.rc2

sweshn commented 2 years ago

Hi Thanks for fast response !! But sorry to say i dosen´t work. Have installed on a "new" laptop IDE 1.8.19,, rp2040_rtc v 1.08 ans Timezone 1.9.0 mbed os rp2040 2.6.1. Still the same error : using ::gmtime; ^~

//Staffan

khoih-prog commented 2 years ago

Hi,

I'm sorry to confirm that you have done something wrong with the installation, such as missing library, files, etc.

I tested here and everything is OK so far with IDE v1.8.19, library v1.0.8 and mbed_nano / mbed_rp2040 core v2.6.1

Selection_091

Selection_090

Don't be discouraged. Try the simplest steps, and compile using the core examples to verify before going any further.

After this experiment, I'm sure you'll learn a lot of things.

If still having issue, I suggest you post in Arduino Forum so that other people with more experience in dealing with installation issues can help you out as I don't have time to deal with those installation issues.

Good Luck,

sweshn commented 2 years ago

Hi

After unistall and install several times it suddenly works !!!

Thanks!

//staffan

Skickades från E-post för Windows

Från: Khoi Hoang Skickat: den 21 januari 2022 23:56 Till: khoih-prog/RP2040_RTC Kopia: sweshn; Mention Ämne: Re: [khoih-prog/RP2040_RTC] Get a compiler error when using anexample (Issue #5)

Hi, I'm sorry to confirm that you have done something wrong with the installation, such as missing library, files, etc. I tested here and everything is OK so far with IDE v1.8.19, library v1.0.8 and mbed_nano / mbed_rp2040 core v2.6.1

Don't be discouraged. Try the simplest steps, and compile using the core examples to verify before going any further. After this experiment, I'm sure you'll learn a lot of things. If still having issue, I suggest you post in Arduino Forum so that other people with more experience in dealing with installation issues can help you out as I don't have time to deal with those installation issues. Good Luck, — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>