Callbacks for timer and RTC not invoked

⚠️
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.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
paolog
Offline
Last seen:2 months 2 weeks ago
加入:2020-11-06 09:30
Callbacks for timer and RTC not invoked

Hi!

I'm trying to implement a low power peripheral based on the security example (I need bonding), so I'm thinking about working on putting the unit is sleep mode at variable time (depending on the situation) using a USB Development Kit.

I tried with the easy timer and RTC interrupt but both the callback functions are not invoked. Is there something that could prevent the timer to run and the RTC interrupt to fire?

Thank you.

paolog
Offline
Last seen:2 months 2 weeks ago
加入:2020-11-06 09:30
Ok, I need to read the

Ok, I need to read the documentation more...

I just found out reading the SDK 6 peripheral drive documentation (http://lpccs-docs.dialog-semiconductor.com/da145xx_tutorial_sdk6_periphe...) that the power domain of the RTC is disabled by default. I did that and now the RTC callback is invoked. Good.

And I also found out that a timer can't be started in the user_on_init callback, as the kernek has not started yet at that point (http://lpccs-docs.dialog-semiconductor.com/da145xx_tutorial_sdk6_periphe...), but it can be started in a user_on_set_dev_config_complete function.

Did that, and the easy timer is working as expected. Twice as good.

So, ask a question and give yourself the answer!

I must say that the DA14531 is a quite versatile module, but documentation is kind of scattered, and requires a long time to find answers.

Well, I hope my ignorance helped!

PM_Dialog
Offline
Last seen:1 day 13 hours ago
工作人员
加入:2018-02-08 11:03
Hi paolog,

Hi paolog,

Thanks for your question online and for your interest in our TINY Module BLE solution.

I would recommend you checking theDA14531 Sleep Mode Tutorial (HTML), as it provides useful information about the different sleep modes in DA14531 and how to configure it too.

There are also SDK and SW Example that demonstrate how to configure the system in the available sleep modes.

SW Examples :

DA14531 BLE Eddystone beacon with Hibernation Or Deep Sleep Mode

DA14531 Configuring To hibernation mode

Both can be found in DA14531 product page :

//www.xmece.com/products/connectivity/bluetooth-low-energy/products/da14530-and-da14531

SDK Examples:

6.0.14.1114\projects\target_apps\ble_examples\ble_app_sleepmode

6.0.14.1114\projects\target_apps\ble_examples\prox_reporter\Keil_5

Thanks, PM_Dialog

paolog
Offline
Last seen:2 months 2 weeks ago
加入:2020-11-06 09:30
Thank you.

Thank you.