Cant build zephyr battery example

Hi,

I was trying to build the zephyr battery example Battery Voltage Measurement — Zephyr Project Documentation (nordicsemi.com) . But when I was building the project, it raises an error like this:

note: in expansion of macro 'DEVICE_DT_GET'

78 | .adc = DEVICE_DT_GET(DT_IO_CHANNELS_CTLR(ZEPHYR_USER)),

What should I do? Or is there any way to read/calculate/measure the input voltage to a pin?

Parents Reply
  • Hello Mike.

    BehicMV is a very close friend of mine who I am currently co-working with in the project that he is trying to solve the problem which is connected to this ticket. 

    Because of the fact that you have mentioned the code builds for you OK, without any problems, we have tried to build it from my computer (we were trying to build the code from his computer until now). Everything worked fine, and I just wanted to ask the reason behind this weird issue.

    Thanks for your help!

Children
Related