rtc_getRTCRawClock is undefined for 20719b2

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
anje_2248446
Level 3
Level 3
25 sign-ins 10 replies posted 10 questions asked

Hello guys,

I have a custom board with cyw20719b2, with a build setup using modus toolboox and wiced bt sdk v2.7.1 fdb3982.

We have 32khz crystal connected, I tired to initialize the rtc like this:

rtcConfig.rtcRefClock = RTC_REF_CLOCK_SRC_32KHZ;

rtcConfig.oscillatorFrequencykHz = RTC_REF_CLOCK_SRC_32KHZ;

rtc_init();

But with this I was getting a compilation error: undefined reference for rtcConfg

I'm able to resolve this issue following instructions from answer to this query on the forum:

RTC in CYBT-413055-02

The answer suggests this:

However to avoid undefined reference error, please include the below line to C:\Users\anpm\ModusToolbox_2.1\wiced_btsdk\dev-kit\baselib\20719B2\internal\20719B2\patches\patch.sym

    rtcConfig = 0x201b21;

With this change I'm able to successfully compile and able to set and get accurate rtc time using provided apis (rtc_setRTCTime & rtc_getRTCTime).

But now I need to use this api "rtc_getRTCRawClock" to get raw rtc time, but now again I'm getting this compilation error:

undefined reference for rtc_getRTCRawClock.

I tried to check if this (rtc_getRTCRawClock) symbol is present in the file:

    \wiced_btsdk\dev-kit\baselib\20719B2\internal\20719B2\patches\patch.sym

But the symbol is not present in the above file.

Can you please let me know how do I fix this issue without updating the sdk ?

Do I need to add a symbol into this patch.sym for rtc_getRTCRawClock also ? if yes please provide the details.

thanks,

aniket

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hi anje_2248446 ,

Lets continue the discussion here: rtc_getRTCRawClock is undefined for 20719b2

We are checking this internally with our software team.

Please expect some delay as team is off. We will update you asap.

Regards,

Anjana

View solution in original post

0 Likes
1 Reply
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hi anje_2248446 ,

Lets continue the discussion here: rtc_getRTCRawClock is undefined for 20719b2

We are checking this internally with our software team.

Please expect some delay as team is off. We will update you asap.

Regards,

Anjana

0 Likes