- 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:
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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