Not on my device!
In that sketch, P25Q16H is not defined. I used this from your Flash_Light_Deep_Sleep example:
SPIFlash_Device_t const P25Q16H {
.total_size = (1UL << 21), // 2MiB
.start_up_time_us = 10000, // Don't know where to find that value
.manufacturer_id = 0x85,
.memory_type = 0x60,
.capacity = 0x15,
.max_clock_speed_mhz = 55,
.quad_enable_bit_mask = 0x02, // Datasheet p. 27
.has_sector_protection = 1, // Datasheet p. 27
.supports_fast_read = 1, // Datasheet p. 29
.supports_qspi = 1, // Obviously
.supports_qspi_writes = 1, // Datasheet p. 41
.write_status_register_split = 1, // Datasheet p. 28
.single_status_byte = 0, // 2 bytes
.is_fram = 0, // Flash Memory
};
With your sketch and this definition it’s at 4µA in the light sleep mode. I increased the delay to 10s just to be sure I have plenty of time to take the reading because I only have a multimeter. When it goes into deep sleep after defining the wake up, it takes 31µA. When I comment out the nrf_gpio_cfg_sense_input line it sleeps at 2.1µA. This is exactly the same behavior I got with my own testing sketch, but that wasn’t unexpected because I derived it from your Flash_Light_Deep_Sleep sketch and just added some LED blinking to know when what is happening and the nrf_gpio_cfg_sense_input to be able to wake up the device.