Hello,
nRF5340+nRF21540, NCS2.0.2, vscode.
void go_system_off(void)
{
printk("%s system off \n", CONFIG_BOARD);
nrf_gpio_cfg_input(NRF_DT_GPIOS_TO_PSEL(DT_NODELABEL(button0), gpios),NRF_GPIO_PIN_PULLUP);
nrf_gpio_cfg_sense_set(NRF_DT_GPIOS_TO_PSEL(DT_NODELABEL(button0), gpios),NRF_GPIO_PIN_SENSE_LOW);
pm_state_force(0, &si);
k_msleep(100);
}
void main(void)
{
int err = bt_enable(NULL);
if (err) {
printk("Bluetooth init failed (err %d)\n", err);
return;
}
err=bt_disable();// return 0xFFFFFF7A
printk("hello world! %X\n",err);
}
sleep mode take 433uA,
if don't do bt_enable(), it take 20uA
why?
Best regards