This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using FreeRTOS, RTC and Softdevice?

Just a general resource question. The Softdevice uses RTC0, FreeRTOS (by coded default) uses RTC1. So in order for the SDK ble_conn_params.c to run properly I have to link app_timer_freertos.c to the Makefile.

This leaves RTC2 available for general nrf_drv_rtc usage. Is this an acceptable setup? I seem to be having issues with the RTC module operating properly. When the Softdevice runs all hell breaks loose when I enable RTC2. Is this a bug in SDK12.3?

Parents
  • I have noticed that if I send an HVX notification, if the Central has not subscribed to the characteristic then the system stays up consuming power and not able to go to sleep. As soon as I enable notifications, the system goes back to proper idle sleep.

    Even after handling an unsubscribed notification error, this never caused high power consumption in previous SDKs.

    if( err_code == BLE_ERROR_GATTS_SYS_ATTR_MISSING)
    {
    	err_code = sd_ble_gatts_sys_attr_set(p_myService->conn_handle, NULL, 0, 0);
    	APP_ERROR_CHECK(err_code);
    }
    
Reply
  • I have noticed that if I send an HVX notification, if the Central has not subscribed to the characteristic then the system stays up consuming power and not able to go to sleep. As soon as I enable notifications, the system goes back to proper idle sleep.

    Even after handling an unsubscribed notification error, this never caused high power consumption in previous SDKs.

    if( err_code == BLE_ERROR_GATTS_SYS_ATTR_MISSING)
    {
    	err_code = sd_ble_gatts_sys_attr_set(p_myService->conn_handle, NULL, 0, 0);
    	APP_ERROR_CHECK(err_code);
    }
    
Children
No Data
Related