This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Runtime error in nrf9160dk ADC program "device_get_binding ADC_0 failed"

While debugging this code https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/adc/src/main.c using nrf9160dk getting error "device_get_binding ADC_0 failed"

Compiling successfully.

Can anyone please suggest a solution?

Parents Reply
  • I have modified line 19 to CONFIG_BOARD_NRF9160_PCA10090NS.

    added #define CONFIG_BOARD_NRF9160_PCA10090NS at 16 line.

    Changed the name of overlay file to nrf9160dk_nrf9160ns.

    change at line 46 - static s16_t m_sample_buffer[BUFFER_SIZE]; to static uint16_t m_sample_buffer[BUFFER_SIZE];

    These are the changes i have done .

    it shows a warning (assignment discards 'const' qualifies from pointer target type [-wdiscarded-qualifiers] ) at line 89  

Children
Related