I am using Segger IDE.
I encounter error undefined reference to `nrf_drv_rng_init' .
I have include the below header file;
I already enable below macro;
#ifndef RNG_ENABLED#define RNG_ENABLED 1#endif
#ifndef NRFX_RNG_ENABLED#define NRFX_RNG_ENABLED 1#endif
What is missing ?
If the linker complains about undefined reference to it would seem like you are missing either the sdk_config.h macros (which you have already checked) or that you simply forgot to add <SDK 15>integration/nrfx/legacy/nrf_drv_rng.c to the project. Could that be it?
Yes. I am missing to add the legacy files.