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

Hi anje_2248446 ,

As a work-around for current btsdk , please add the line "rtc_getRTCRawClock = 0x01b615;" to wiced_btsdk/dev-kit/baselib/20719B2/internal/20719B2/patches/patch.sym file.

Also note that a library wiced_rtc_lib.a is added for the 20719B2 next BTSDK release ( btsdk 2.9 ) that will include these APIs.

Regards,

Anjana

View solution in original post

0 Likes
3 Replies
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hello anje_2248446 ,

Will check internally if rtc_getRTCRawClock can be added to CYW20719B2 or not.

Regards,

Anjana

0 Likes

Hello AnjanaM_61, can you please check if there is any update on this reported issue ?

0 Likes

Hi anje_2248446 ,

As a work-around for current btsdk , please add the line "rtc_getRTCRawClock = 0x01b615;" to wiced_btsdk/dev-kit/baselib/20719B2/internal/20719B2/patches/patch.sym file.

Also note that a library wiced_rtc_lib.a is added for the 20719B2 next BTSDK release ( btsdk 2.9 ) that will include these APIs.

Regards,

Anjana

0 Likes