How to measure battery voltage with my custom nrf54L15 board?

I have customed my own nrf54L15 board and it would run on button battery. I managed to measure the battery level through ADC, but I don't know how to use ADC with nrf54L15.

Firstly I tried to run demo: ncs2.8.0/zephyr/samples/boards/nordic/battery to test, but it failed to be built with target nrf54l15dk/nrf54l15/cpuapp.

So how to measure the battery voltage(nrf54l15 input voltage)?

Related