I need twoADC channels. I tried to configure using :
CONFIG_ADC= y in prj file,
&adc{
#io-channel-cells = < 0x2 >;
}; in overlay file .. the compile error appears as shown in atteched iamge.
Gulzar Singh
I need twoADC channels. I tried to configure using :
CONFIG_ADC= y in prj file,
&adc{
#io-channel-cells = < 0x2 >;
}; in overlay file .. the compile error appears as shown in atteched iamge.
Gulzar Singh
Hello Gulzar,
It is needed to figure out what should be placed in the devicetree to enable two channels in the SAADC. There may be something wrong with the device tree configuration. nRF5340 has only one SAADC core with 8 input channels mux. Could you please share your .dts file?
Our getting started guide seems to have a section on its own for how to add the ADC peripheral to an example project for example https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-4-0#h185sjwm5882m1bcimiad82dnf4kcy0b
You can also check out ADC driver documentation:https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/adc/index.html?highlight=ad
Thanks.
Best Regards,
Kazi Afroza Sultana
Hello Gulzar,
It is needed to figure out what should be placed in the devicetree to enable two channels in the SAADC. There may be something wrong with the device tree configuration. nRF5340 has only one SAADC core with 8 input channels mux. Could you please share your .dts file?
Our getting started guide seems to have a section on its own for how to add the ADC peripheral to an example project for example https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-4-0#h185sjwm5882m1bcimiad82dnf4kcy0b
You can also check out ADC driver documentation:https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/adc/index.html?highlight=ad
Thanks.
Best Regards,
Kazi Afroza Sultana