The extend sleep current now I measured on my custom board is about 10uA, that is bigger than 4uA, my system need i2c and spi, I initialized the i2c and spi at every wakeup in periph_init, does this 6uA(10-4 = 6) caused by the i2c_init or spi_init?
Chip: DA14585, SDK:6.0.14.1114, no 32.768K used.
Device:
Hi cgha,
Thanks for your question. Please keep in mind that when the system is any of the sleep modes, all the peripheral domains, including SPI and I2c, are powered down. For instance, you will not able to have any SPI transaction in sleep mode. Could you please check if the SPI Flash is powered down? If not, this will increase the sleep currents.
Are you using a custom board, or any of our DKs?
Thanks, PM_Dialog
I use a custom board, and I use the on chip otp.
Hi cgha,
So, the application code is stored in the OTP and the device is booting from there? Do you have an SPI flash on you board? Are you using any of the SDK examples?
Thanks, PM_Dialog
Yes, it boot from otp. No SPI Flash. My project is based on ancs example.
I've tested on another dev board with 256K flash named W25X20, the board with 32.768K mounted, the software use ble_app_sleepmode example. The changes I've made:
1. Change the app_default_sleep_mode from ARCH_EXT_SLEEP_OTP_COPY_ON to ARCH_EXT_SLEEP_ON.
2. Add SPI port configuration in set_pad_functions.
3. Add spi_flash_configure_env(&spi_flash_cfg) & spi_initialize(&spi_cfg) in periph_init();
4. Add spi_flash_power_down() in default_app_on_db_init_complete after advertising.
The current is about 12 uA after advertising finish.
Hi cgha,
Are you measuring the current consumption of your whole board, or only the DA14585? Is it connected with a peer device, or it just advertises? Additionally, what are the intervals (advertising / connection) that you are using?
How you are measuring 10uA? Does the device stop advertising and goes into permanent extended sleep mode?
Thanks, PM_Dialog
我发现这个问题,重置信号列弗el seems wrong, I'll change the hardware. Thanks!
Hi cgha,
Glad that you figured your HW issue out and thanks for the sharing.
If you have any other floow-up question, please raise another forum thread.
Thanks, PM_Dialog