How to use internal clock (RCX 20) in SDK 6.0.8

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
Jun-ichi Tobe
Offline
Last seen:6 months 6 days ago
Joined:2016-04-01 10:39
How to use internal clock (RCX 20) in SDK 6.0.8

Hello, support team!

I am testing DA 14585 using the latest SDK 6.0.8.
And I am using the Dialog evaluation kit (Pro).

Setting it to LP_CLK_XTAL32 (external clock) is working.
If this is set to LP_CLK_RCX 20 (internal colck) it will stop working.

When debugging, line 447 of rwip.c
It seems to stop with ASSERT_WARNING (! USE_XTAL16M_ADAPTIVE_SETTLING).

The setting is as follows.
*Used Project Name: ble_app_barebone

*Changed code:
\ user_config.h
static const sleep_state_t app_default_sleep_mode = ARCH_EXT_SLEEP_ON

.intv_min = MS_TO_BLESLOTS (417.5)
.intv_max = MS_TO_BLESLOTS (417.5)

\ da 1458 x _ config_advanced.h
#define CFG_LP_CLK LP_CLK_RCX 20
#define CFG_ENABLE_SMP_SECURE // 6.0.8 only

\ arch.h
#define STARTUP_SLEEP_DELAY_DEFAULT (160) // 0.1 sec & 6.0.4 / 6.0.8 only

I have tested that it works on both XTAL32 and RCX20 setting in the older version (I tested with SDK 6.0.4 and 6.0.6).

When using RCX 20 settings with the latest SDK 6.0.8, do I have to set something else?
Is SDK 6.0.8 different from the previous version?

Best regards,

Jun-ichi

Device:
Jun-ichi Tobe
Offline
Last seen:6 months 6 days ago
Joined:2016-04-01 10:39
Hello, support team!

Hello, support team!

I will update about setting conditions.

An error occurs (stops at line 447 of rwip.c) under the following conditions.

* SDK 6.0.8 only
* \ user_config.h
static const sleep_state_t app_default_sleep_mode = ARCH_EXT_SLEEP_ON
* \ da 1458 x _ config_advanced.h
#define CFG_LP_CLK LP_CLK_RCX 20

When SDK 6.0.6 is used, it works normally.

Best regards,

Jun-ichi

boydy1989
Offline
Last seen:1 year 8 months ago
Joined:2017-10-18 16:11
Hi

Hi

I found a similar problem

试着改变这个da1458x_config_adva # undefnced.h

/****************************************************************************************************************/
/* Enable power optimizations using the XTAL16M adaptive settling algorithm. */
/* NOTE: The XTAL16M adaptive settling algorithm works only with XTAL23K and not with RCX, as the LP clock. */
/****************************************************************************************************************/
#undef CFG_XTAL16M_ADAPTIVE_SETTLING

This allowed the device to run with the internal oscillator.

PM_Dialog
Offline
Last seen:6 days 3 hours ago
Staff
Joined:2018-02-08 11:03
Hi Jun-ichi Tobe,

Hi Jun-ichi Tobe,

Thank you for using our new SDK. The XTAL16M adaptive settling algorithm works only with XTAL23K and not with RCX, as the LP clock, so you should undefine theCFG_XTAL16M_ADAPTIVE_SETTLINGfrom da1458x_config_advanced.h header file. Could you please let us know if your problem fixed with that?

Thanks, PM_Dialog

Jun-ichi Tobe
Offline
Last seen:6 months 6 days ago
Joined:2016-04-01 10:39
Hi boydy1989 & PM_Dialog !

Hi boydy1989 & PM_Dialog !
I can confirm that it is working on RXC 20 setting while setting #undef CFG_XTAL16M_ADAPTIVE_SETTLING setting.
Thank you for your support.
Jun-ichi