Recently in low power design with DA14580.
The way to turn on low power is:
1, user_config.h variable into such a const static sleep_state_t App_default_sleep_mode=arch_sleep_off;
2, Da14580x_config_advanced.h will #define CFG_LP_CLK lp_clk_rcx20 here, macro definition is important, if you do not pick up the external 32K, here must be configured to internal, or enter a low power consumption does not come
After setting the above parameters, the power consumption dropped a lot, and the work is normal, then I put the program into flash, can work normally. But when I want to burn again, it is not enough, and online debugging can not be adjusted. The final analysis is because the single-chip microcomputer has entered low power consumption, resulting in the download is not possible. So the final use of power after the first minute does not enter the low power, 1 minutes after the entry. Call this function directly to Arch_set_sleep_mode (ARCH_EXT_SLEEP_ON);