respected All,
i used nrf52840_dk module with zephyr with J-link programmer, the issue is the deep sleep is not work. and also not wake up using gpio rising edge where interrupt is coming i see on data logger, also i see on multimeter the current draw in running/active code is 500- micro ampere and after execute sys_poweroff();
meanse in deep sleep is 2550 micro-ampere…
the code simple snippet is
**app main()
{
...
...
gpio_pin_interrupt_configure_dt(&intr_specs, GPIO_INT_EDGE_RISING);
// k_msleep(1000);
pm_device_action_run(cons, PM_DEVICE_ACTION_TURN_OFF);
pm_device_action_run(i2c1_dev, PM_DEVICE_ACTION_TURN_OFF);
pm_device_action_run(uart_dev, PM_DEVICE_ACTION_TURN_OFF);
pm_device_action_run(fs.flash_device, PM_DEVICE_ACTION_TURN_OFF);
// NRF_GPIOTE->EVENTS_PORT = 0;
// NRF_POWER->SYSTEMOFF = 1;
sys_poweroff();
}**
please help me for this issue…
my config is in prj.config are below
CONFIG_GPIO=y
CONFIG_GPIO_INIT_PRIORITY=60
CONFIG_I2C=y
CONFIG_LOG=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_CRC=y
CONFIG_PM=n
CONFIG_PM_DEVICE=y
CONFIG_POWEROFF=y
CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_UART_0_INTERRUPT_DRIVEN=n
CONFIG_UART_0_ASYNC=y
CONFIG_FLASH=y
CONFIG_NVS=y
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_NVS_LOG_LEVEL_DBG=y
CONFIG_REBOOT=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME="BT-MT"
CONFIG_BT_DEVICE_APPEARANCE=0
CONFIG_BOOTLOADER_MCUBOOT=y
help me for this issue…
HARSH SHAH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.