Sample zephyr adc not working

Hi,

I am using nrf52833dk_nrf52820 to test adc sample in samples/boards/nrf/battery.

I have issues in building.  

.dts has no adc, so i added it in overlay as suggested in readme. 

.overlay has following.

/ {
    zephyr,user {
       io-channels = <&adc 4>;
    };
 };

 &adc {
    status = "okay";
};
I am seeing following error message

devicetree error: C:/Users/sxt0714/Documents/Workspace/Zephyr-examples/adc/test_battery/nrf52833dk_nrf52820.overlay:19 (column 2): parse error: undefined node label 'adc'
CMake Error at C:/ncs/v2.0.0/zephyr/cmake/modules/dts.cmake:213 (message):
gen_defines.py failed with return code: 1
Call Stack (most recent call first):
C:/ncs/v2.0.0/zephyr/cmake/modules/zephyr_default.cmake:121 (include)
C:/ncs/v2.0.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:51 (include)
C:/ncs/v2.0.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:81 (include_boilerplate)
CMakeLists.txt:5 (find_package)

if I dont use overlay, i am seeing following build issue.
Related