Can the RTC's calendar function be used alongside BLE?
Hey folks,
I'm having issues with the RTC's calendar function while using BLE.
I would like to timestamp recorded data using the calendar function of the RTC and then transmit that data over Bluetooth. However, when I enable the Bluetooth middleware in Cube, it forces the ASYNC and SYNC prescalers of the RTC to predetermined values of 0xF and 0x7FFF, respectively. See image.
Is it possible to use the calendar function while using BLE? If so, how?
Thus far I found the following in app_conf.h (which is not very encouraging...) :
#define CFG_RTCCLK_DIVIDER_CONF 0
#if (CFG_RTCCLK_DIVIDER_CONF == 0)
/**
* Custom configuration
* It does not support 1Hz calendar
* It divides the RTC CLK by 16
*/
#define CFG_RTCCLK_DIV (16)
#define CFG_RTC_WUCKSEL_DIVIDER (0)
#define CFG_RTC_ASYNCH_PRESCALER (CFG_RTCCLK_DIV - 1)
#define CFG_RTC_SYNCH_PRESCALER (0x7FFF)Is there a way to make the two work alongside each other?