We're using a nRF5340 module on our board, and have basically everything working as we'd like using SDK 2.1.0.
I've tried updating to SDK 2.6.1, and managed to resolve all the differences with the API calls, but have found current consumption is much higher. Using 2.1.0 it's about 450 uA in normal operation, compared to 1000 or so uA using 2.6.1.
I've checked the most likely suspects - CONFIG_SERIAL is off, and the ADC is set to disabled in out overlay file. I also found this question Power Management nrf5340 and so I've tried adding CONFIG_PM_DEVICE_RUNTIME to the config file. It doesn't seem to make any difference. Turning CONFIG_PM off in sdk 2.1.0 didn't increase the current either.
Previously we had a problem with an older revision of this board having high power consumption in High Voltage Mode ( nRF5340 SAADC power consumption and High Voltage Mode has high current consumption on custom nRF5340 board ) but so far as I can tell this isn't the issue here, unless there's some way to specify high/normal voltage mode in the config file?
We're running the radio connection, sampling via an ADC with NRFX_DPPI, communicating with peripherals via NRFX_SPIM, using GPIO (including interrupts) via NRFX_GPIOTE and running some timers.
I've not gone in detail through turning these all off individually, but if I prevent the adc sampling and data processing code from running, then just the radio is about 70 uA on SDK 2.1.0 and about 300 on 2.6.0. That means there's still a current difference without our gpio code running, which makes me think that's not the problem.
All of this implies to me there's not one single peripheral causing the current draw, but something about the way the chip is powered or possibly the level of sleep it goes into has changed since SDK 2.1.0. It also doesn't seem to be a flat increase to the current, but is in some way proportional to the load on the chip or something.
Can you suggest anything else to look into? Is there something I need to do to disable High Power Mode in the configuration? Or do I now need to specify the sleep mode somehow?