- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello anje_2248446 ,
Will check internally if rtc_getRTCRawClock can be added to CYW20719B2 or not.
Regards,
Anjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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