2 weeks ago
custom board automatically reset every few seconds
Posted bygeekydragon100 points 3 repliesHi Dialog,
I ran a couple of sample projects on my custom board. All of them worked fine in debug mode (on both flash and ram) without any problem.
However, when I run the code normally from flash, the board appeared to automatically reset itself in about every 8 seconds.
Was using USB for power, therefore power won't be the issue. What else could it be? Appreciate if you could share some thoughts here.
2 weeks ago
I was running the default led_driver project without modifying anything. The LPC is the default LP_CLK_32768, and I have an external 32.768kHz XTAL on my custom board.
Thanks for pointing out the potential cause of sleep mode being enabled. When I changed line 74 in main.c from pm_sleep_mode_set(pm_mode_extended_sleep); to pm_sleep_mode_set(pm_mode_active); the system runs continuously without resetting itself in every ~8 seconds.
I guess the system by default runs about 8 seconds, goes to sleep mode, and then wakeup again, repeatedly. For the ble_adv project, I found "define USE_BLE_SLEEP 1" in the ble_config.h, which allows ble to sleep when inactive. But what about the led_driver project, which part of the code configures this sleep/wakeup behavior?
Pls kindly share more info/resources about the sleep/wakeup mechanism. Thank you for the help!
1 week ago
Hi geekydragon,
Apologies for the delay. The led_driver project is not using BLE activity.
Could you please download the project from our GIT repo and try it again?
https://github.com/dialog-semiconductor/BLE_SDK10_examples
Regarding the ble_adv project, the device is sleeping between advertising (or connection) intervals and wakes up automatically via the BLE Timer.
You could take a look at this tutorial :http://lpccs-docs.dialog-semiconductor.com/da1469x_power_measurement/index.html
Thanks, PM_Dialog
2 weeks ago
Hi geekydragon,
I would recommend first checking our HW design guideline document – link is provided below :
//www.xmece.com/sites/default/files/2020-12/an-b-066_da1469x_application_hardware_design_guidelines_rev1.5_13nov2020.pdf
Which project are you using? Do you have sleep mode enabled? If yes, what is the Low Power Clock (LPC) that you are using?
Thanks, PM_Dialog