error: #20: identifier "NRFX_TIMER0_INST_IDX" is undefined

Hi,

I working with NRF52840 DK board, I need to read some potentiometer values from 0 to 10 using ADC with ble_app_uart. I have combined SAADC code and BLE_APP_UART code, while compiling the code I am getting some error as " #20: identifier "NRFX_TIMER0_INST_IDX" is undefined". Please anyone help on this how to solve the error.

Thanks.

Parents Reply
  • This is a linker warning indicating that these functions has not been compiled. That could either be because you have not added the .c files that implement them to the project so that they are not compiled, or that these functions are stripped out by the preprocessor, typically because of missing configurations in sdk_config.h.

    For instance for PPI, the relevant implementations are in integration\nrfx\legacy\nrf_drv_ppi.c and modules\nrfx\drivers\src\nrfx_ppi.c. So you need to add those two files. And you must make sure that PPI_ENABLED is set to 1 in your sdk_config.h.

Children
Related