This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with ECC.c

Hi,

I'm working on a BLE application which use ECC.c (Elliptic Curve Crytography). The problem is Keil has found an Error:

._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_drv_rng_block_rand (referred from ecc.o).

if i remove the line errcode = nrf_drv_rng_block_rand (dest, (uint32_t) size); in ECC.c the entire program compile, but of course can't work without this line...

The library "nrf_drv_rng.h" is provided.

The libraries in ECC.c are :

#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "nordic_common.h"
#include "app_timer.h"
#include "app_util.h"
#include "nrf_log.h"
#include "nrf_drv_rng.h"
#include "ecc.h"

#include "uECC.h"

Thanks you in advance !

Related