It has been asked before but I couldn't find a satisfying answer so far. To reduce base power consumption of 600uA to roughly 3uA I disabled serial by setting CONFIG_SERIAL=n in prj.conf. But I get the following warning:
It does work however, and the powerconsumption is reduced. I'm on SDK v2.3.0.
I also tried to just disable serial in the device tree, but it's called somewhere in the project (probably <zephyr/logging/log.h>, so the build crashes unless I do the above.)
I also tried disabling using setting the powerstate at runtime, but I cannot figure the arguments I've to put in the function, as the signature has changed over time and I'm unable to find a current example. The latest I could find is of Zephyr 1.4.
Question why is this warning and what is the right way to disable serial (or reduce power).
Edit: I guess it should be
during runtime.