Hello,
I am using nrf5340 audio dk to make some modifications and tests.
When I add a devicetree to the overlay file and use DEVICE_DT_GET to get the device object, it always occur build fail: undefined reference to '__device_dts_ord_N'.
For example the following modification:
nrf5340_audio_dk_nrf5340_cpuapp.overlay:
&pdm0{
status = "okay";
clk-pin = <41>;
din-pin = <38>;
};
and using DEVICE_DT_GET in code:
const struct device *mic_dev = DEVICE_DT_GET(DT_NODELABEL(pdm0));
if (!device_is_ready(mic_dev)) {
return;
}
I don't know if there are other steps needed to add devicetree.