Host freezes without user_scan_start()

⚠️
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.
2 posts / 0 new
Last post
ilnur_muham
Offline
Last seen:1 month 2 weeks ago
加入:2016-02-17 07:59
Host freezes without user_scan_start()

Hi all!
My central must do 2 types of activity:
- scanning, communication and disconnection after transmitting data to device or in case of timeout. It must be done after request from my application.
- periodical activity (for example every 100ms) using timer(created by app_easy_timer).

My app is based on DSPS host. Most of the time BLE should be powered down.
The problem is that if I exclude user_scan_start() (for example in user_on_scanning_completed callback function) my code freezes on line while(!ble_deep_sleep_stat_getf()); inside rwip_sleep function.

What should I do to power down BLE in the central role?

app_default_sleep_mode = ARCH_EXT_SLEEP_ON

Device:
ilnur_muham
Offline
Last seen:1 month 2 weeks ago
加入:2016-02-17 07:59
I've found the problem. It

I've found the problem. It was non-working XTAL32K. Switching to RC clock fixed issue.