Hello,
I want to implement random number generator with ble_app_uart, and I am using NRF5 SDK12 with pca10031. I also implemented the RNG periperal example already provided with SDK which runs fine. But when I tried to use the same API in ble_app_uart I get following linking errors:
_build/nrf51422_xxac_main.c.o: In function `rng_check':
/home/ac4/programs/NRF_SDK_12.1/examples/ble_peripheral/ble_app_uart/pca10028/s130/armgcc/../../../main.c:237: undefined reference to `nrf_drv_rng_init'
/home/ac4/programs/NRF_SDK_12.1/examples/ble_peripheral/ble_app_uart/pca10028/s130/armgcc/../../../main.c:243: undefined reference to `nrf_drv_rng_bytes_available'
/home/ac4/programs/NRF_SDK_12.1/examples/ble_peripheral/ble_app_uart/pca10028/s130/armgcc/../../../main.c:251: undefined reference to `nrf_drv_rng_rand'
These are the line I added in Makefile:
SRC_FILES += \
...
$(SDK_ROOT)/components/drivers_nrf/rng/nrf_drv_rng.c \
...
INC_FOLDERS += \
...
$(SDK_ROOT)/components/drivers_nrf/rng \
...
Please tell me If I am supposed to add anything else in Makefile, also , I have read some peripherals cannot be used with softdevice, is RNG one of them, and which other peripherals cannot be used with softdevice?