⚠️
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.
8 posts / 0 new
Last post
huiui
Offline
Last seen:1 year 1 week ago
加入:2017-07-08 22:32
DA14680 reboot every about 10 second

Hello,

I have a custom board with DA14680, and I am using SDK 1.0.14.

I have an issue with BLE task: when it is enabled, the board reboot about every 10 seconds; however, if BEL task is disabled, then it won't reboot.

I also tried with #define dg_configUSE_BOD=0, but it didn't help.

I would like to ask why would BLE task trigger reboot? What may be the potential issue? Thank you for the help!

Device:
PM_Dialog
Offline
Last seen:2 days 15 hours ago
Staff
加入:2018-02-08 11:03
Hi huiui,

Hi huiui,

Can you please run your code in debug mode and then let me know if it gets stuck anywhere? Are you getting an NMI or the WGOG expires? You could follow theDebugging Techniques Tutorialfor the debugging procedure.

Thanks, PM_Dialog

huiui
Offline
Last seen:1 year 1 week ago
加入:2017-07-08 22:32
Hi PM_Dialog,

Hi PM_Dialog,

I tried multiple times, it seems I am always stucking at

trimmed = !hw_cpm_check_sleep_flag() of function "pm_system_wake_up(void)" at "sys_power_mgr.c"

Also if I tried to step over this line ('F6'), it will show the following error:

Can't find a source file at "/home/build/workspace/SDK680/Release_Build_MANUAL/Artifacts/tmp/ble_stack/sdk/interfaces/ble_stack/DA14681-01-Release/../src/rom_patch/rom_patch.c"
Locate the file or edit the source lookup path to include its location.

它有意义吗?我不确定I am getting NMI or WGOG though, how to check for that? Thank you!

PM_Dialog
Offline
Last seen:2 days 15 hours ago
Staff
加入:2018-02-08 11:03
Hi huiui,

Hi huiui,

Which example of the SDK are you working on? Is it BLE or non-BLE example? Are you using any of sleep mode or the device is operating always in active mode? If you are using sleep mode, which is the Low Power clock? The device after 8 seconds is going to sleep mode, and I suppose that it is unable to wake up.

Thanks, PM_Dialog

huiui
Offline
Last seen:1 year 1 week ago
加入:2017-07-08 22:32
Hi PM_Dialog,

Hi PM_Dialog,

I was using a heavily modified pxp-reporter code.

I just tried again with the original pxp-reporter code, now it stuck at below line of ble_rwip_sleep() function at "arch_main.c".

while(!ble_deep_sleep_stat_getf()); // 2 - 4 LP cycles

I turned off watch dog, otherwise it would stuck at watch_dog handler.

From the original pxp-reporter code, it uses 'pm_mode_extended_sleep' and low power clock is 'LP_CLK_32768'.

It seems the issue may be related to BLE core wake up? I believe it is a hardware issue, but not sure where specifically is the issue.

Thanks!

PM_Dialog
Offline
Last seen:2 days 15 hours ago
Staff
加入:2018-02-08 11:03
Hi huiui,

Hi huiui,

Can you please run a non-BLE example without sleep mode configuration? For instance, can you please run the freertos_retarget example of the SDK? Since you have custom boards, did you check the power rails> Are they according to datasheet specifications?

Thanks, PM_Dialog

huiui
Offline
Last seen:1 year 1 week ago
加入:2017-07-08 22:32
Hi PM_Dialog,

Hi PM_Dialog,

I tried a little bit different today. First it seems to be solving the issue.

Basically when I change LP_CLK from 'LP_CLK_32768' to 'LP_CLK_RCX', reboot issue is gone, which indicates something may be wrong with my 32k crystal.

However, it only works for QSPI build. For QSPI_SUOTA build, if I use LP_CLK_RCX, the program will stuck at OS_TASK_CREATE(), it was not able to create any task. Why is happening like that? Thanks!

MHv_Dialog
Offline
Last seen:2 months 9 hours ago
Staff
加入:2013-12-06 15:10
Hi huiui,

Hi huiui,

This would indeed indicate a defective development board. We will contact you via email to organize a replacement (via our sales US office which happens to be within a few miles of you ;o)

/MHv