nRF Connect SDK 3.2.1 (Zephyr 4.2.99) - battery sample for Thingy53 give zero value

Hello,

I've been having problems in getting the correct battery voltage for a Thingy53 for a number of projects, when using the latest nRF Connect SDK 3.2.1 (Zephyr 4.2.99). There were no issues in past with nRF Connect SDK 3.1.0.

For a quick test, I've built the "battery" sample in  "/nordic/ncs/v3.2.1/zephyr/samples/boards/nordic/battery" for Thingy53.

On running the application, Thingy53 console output reported that the battery voltage was 0 mV. This is obviously incorrect. When the USB-C connection to the Thingy53 is removed, application reports ~3 V.

A quick check with a multimeter reported the correct voltage of ~4.V.

When the exact same source code is built with nRF Connect SDK 3.1.0 (Zephyr 4.1.99), the application reported the correct value of ~4 V, irrespective of whether the USB-C cable is connected to the Thingy53 or not. 

It looks like that the ADC code changes in Zephyr 4.2.x may be the cause of the error.

Any idea what may be the cause of the issue? 


Can someone in Support verify the battery sample on a Thingy53 using nRF Connect SDK 3.2.1?

Thank you.

Related