This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/CC2640R2F: TRNG with Project Zero : unresolved symbol issue.

Part Number: CC2640R2F

Tool/software: TI-RTOS

Hi everyone!

There were problems adding TRNG to the project zero.

Before that, I add TRNG to "empty" for test, it work fine.

So I ported the TRNG code to project zero, but errors occurred:

Description Resource Path Location Type
unresolved symbol TRNG_count, first referenced in C:/ti/simplelink_cc2640r2_sdk_2_40_00_32/source/ti/drivers/lib/drivers_cc26x0r2.aem3<TRNGCC26X0.oem3> project_zero_cc2640r2lp_app C/C++ Problem

Description Resource Path Location Type
unresolved symbol TRNG_config, first referenced in C:/ti/simplelink_cc2640r2_sdk_2_40_00_32/source/ti/drivers/lib/drivers_cc26x0r2.aem3<TRNGCC26X0.oem3> project_zero_cc2640r2lp_app C/C++ Problem

I can't figure out where the problem is, any solution?

Many thanks, Gary

  • Add the following code to CC2640R2_LAUNCHXL.c

    #include <ti/drivers/TRNG.h>
    #include <ti/drivers/trng/TRNGCC26X0.h>

    TRNGCC26X0_Object trngCC26X2Objects[CC2640R2_LAUNCHXL_TRNGCOUNT];

    const TRNGCC26X0_HWAttrs trngCC26X2HWAttrs[CC2640R2_LAUNCHXL_TRNGCOUNT] = {
    {
    .intPriority = ~0,
    .swiPriority = 0,
    .samplesPerCycle = 240000,
    }
    };

    const TRNG_Config TRNG_config[CC2640R2_LAUNCHXL_TRNGCOUNT] = {
    {
    .object = &trngCC26X2Objects[CC2640R2_LAUNCHXL_TRNG0],
    .hwAttrs = &trngCC26X2HWAttrs[CC2640R2_LAUNCHXL_TRNG0]
    },
    };

    const uint_least8_t TRNG_count = CC2640R2_LAUNCHXL_TRNGCOUNT;