⚠️
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.
6 posts / 0 new
Last post
Kevleo94
Offline
Last seen:2 years 9 months ago
加入:2017-09-05 07:18
Wakeup ble

Hi, I want to ask about sleep and wake ble.
1. When ble in sleep mode and I want to wake it up, does it needs time to make the transition between sleep and wakeup? when it does need, how much time its need to wake?
2. When I try to wake the ble and then do some command, it's giving me "BKPT". I think it's about the RAM. is it correct?

Thank you

Device:
PM_Dialog
Offline
Last seen:21 hours 11 min ago
Staff
加入:2018-02-08 11:03
Hi Kevleo94,

Hi Kevleo94,

Could you please clarify your question? As I can understand from your question, what you want to know is, what is the exact wakeup time from extended sleep mode to the execution of the first instruction? Did I understand correctly your question? In case you mean that, the time from the wake up interrupt to the execution of the first command isn’t standard and depends mainly on the outside temperature. In order to trigger the interrupt for waking up, a standard time would be 2 low power clocks (LPC) and the time since the 580 performs some analog measurements before executing code is ranged from 0.5 to 1 ms. So, a standard value would be 2 LPC + (0.5 to 1) ms, but this timing is not stable when temperature increases. As long as the out temperature increases, this time increases.

Regarding the BKPT, this is a breakpoint into the SDK which notifies the user when something crashes into the application. Where this breakpoint hits into your code?

Thanks PM_dialog

Kevleo94
Offline
Last seen:2 years 9 months ago
加入:2017-09-05 07:18
Thank you for your reply...

Thank you for your reply...
For question number 1, I got what I wanted to know.
For question number 2, I know the BKPT it's about breakpoint. The problem is when I'am not giving sleep module the code works fine. But when I add sleep module and then wake the bluetooth the code give me BKPT. What is the main problem?

Thank you

PM_Dialog
Offline
Last seen:21 hours 11 min ago
Staff
加入:2018-02-08 11:03
Hi Kevleo94,

Hi Kevleo94,

Where the breakpoint hits into your Application code?

Thanks PM_dialog

Kevleo94
Offline
Last seen:2 years 9 months ago
加入:2017-09-05 07:18
// if this Assertion hits

/ /如果这个断言击中LP ISRlasts longer than the time
// that has been reserved via LP_ISR_TIME_XTAL32_CYCLES and LP_ISR_TIME_USEC.
if (sleep_lp_cycles && (sleep_lp_cycles < slp_period))
ASSERT_WARNING(0);

I got "BKPT" in ASSET_WARNING(0). I'm using tutorial project for sleep module

Thank you

PM_Dialog
Offline
Last seen:21 hours 11 min ago
Staff
加入:2018-02-08 11:03
Hi Kevleo94,

Hi Kevleo94,

This breakpoint hits because most probably the BLE_WAKEUP_LP_Handler() takes longer than it should, so your code goes into the ASSERTION that you posted. The periph_init() function is invoked from the BLE_WAKEUP_LP_Handler() when waking up. So perhaps into the periph_init() function, your application code takes longer that it should. Have you added code of your own into this function that would take time to execute? If you do that, please check that.

Thanks PM_dialog