Hi,
I am using bare metal SDK v2.0.0 and am trying to build the fuel gauge sample inside nrf-bm\v2.0.0\nrf\samples\pmic\native\npm13xx_fuel_gauge. I am using bm_nrf54l15dk/nrf54l10/cpuapp/s115_softdevice as a board target and selected the nrf54l15dk_nrf54l15_cpuapp.overlay as devicetree overlay and the npm1300.overlay as a extra overlay in the build configuration.
At first, the build fails with missing peripherals in the device tree (pinctrl, gpio etc.), which made me try to comment out the respective delete-node lines inside bm_nrf54l15dk_nrf54l051015_peripherals.dtsi (why are all the peripherals deleted there?). After doing so, it still fails with:
C:/ncs/nrf-bm/v2.0.0/zephyr/include/zephyr/device.h:96:41: error: '__device_dts_ord_29' undeclared here (not in a function); did you mean '__device_dts_ord_21'?
96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
What am I doing wrong? Eventually, I just want to make the fuel gauge working on our custom board prototype. What is the best practice here?
Let me know if you need any more information.
Thank you and have a good day,
Philipp