In sdk-zephyr/samples/boards/nordic/battery/src/battery.c at main · nrfconnect/sdk-zephyr
nRF54L series doesn't have 'SAADC_CH_PSELP_PSELP_AnalogInput0', how should it be changed?
In sdk-zephyr/samples/boards/nordic/battery/src/battery.c at main · nrfconnect/sdk-zephyr
nRF54L series doesn't have 'SAADC_CH_PSELP_PSELP_AnalogInput0', how should it be changed?
Hi
On nRF54L series the SAADC input selection is different, so SAADC_CH_PSELP_PSELP_AnalogInput0 is not available. From the Nordic Academy material for nRF54L, the recommended way is to use the new “NRFX_ANALOG_EXTERNAL_AINx” (or pin-number) style when configuring SAADC channels with nrfx.
You could use the nrfx‑SAADC based examples from the Nordic Academy (Exercise 2 or Exercise 3) as your starting point for nRF54L battery measurement instead of the Zephyr battery sample. I hope it helps.
Best Regards,
Syed Maysum
Hi
On nRF54L series the SAADC input selection is different, so SAADC_CH_PSELP_PSELP_AnalogInput0 is not available. From the Nordic Academy material for nRF54L, the recommended way is to use the new “NRFX_ANALOG_EXTERNAL_AINx” (or pin-number) style when configuring SAADC channels with nrfx.
You could use the nrfx‑SAADC based examples from the Nordic Academy (Exercise 2 or Exercise 3) as your starting point for nRF54L battery measurement instead of the Zephyr battery sample. I hope it helps.
Best Regards,
Syed Maysum