Core2 for AWS IoT EduKit BSP 1.5.1

The BM8563 library provides convenience functions to interact with the BM8563 Real-Time Clock (RTC). The initialization function configures the the Espressif I2C drivers and the real-time clock (RTC) with preset parameters.

Circuit Block Diagram for BM8563 Real-Time Clock

To enable this feature using KConfig, use the command pio run --environment core2foraws --target menuconfig from within the root of the project directory in your PlatformIO terminal window and go to the menu Component Config --> Core2 for AWS features to set the features you want to enable.


The following example initializes the Core2 for AWS, which initializes the PMU for the battery and other user enabled hardware features — such as the BM8563. It then prints the current date time using the ESP logger.

#include "esp_log.h"
#include "core2forAWS.h"
static const char *TAG = "EXAMPLE";
void app_main(void){
rtc_date_t date;
ESP_LOGI(TAG, "Date: %d-%02d-%02d Time: %02d:%02d:%02d",
date.year, date.month,, date.hour, date.minute, date.second);
void BM8563_GetTime(rtc_date_t *data)
Retrieves the date and time on the BM8563.
Definition: bm8563.c:56
void Core2ForAWS_Init(void)
Initializes the power chip with default values, enables battery charging, and initializes all enabled...
Definition: core2forAWS.c:32
Functions to initialize and access Core2 for AWS IoT EduKit hardware features.
#define TAG
Definition: i2c_device.c:10
The member defintions of the BM8563 RTC date.
Definition: bm8563.h:13
uint16_t year
Date year.
Definition: bm8563.h:15
uint8_t second
Time second.
Definition: bm8563.h:20
uint8_t minute
Time minute.
Definition: bm8563.h:19
uint8_t day
Date day.
Definition: bm8563.h:17
uint8_t hour
Time hour.
Definition: bm8563.h:18
uint8_t month
Date month.
Definition: bm8563.h:16