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.

CCS/CC1352P: NVS library linking problem

Part Number: CC1352P

Tool/software: Code Composer Studio

Hi all,

I am working on internal flash of  CC1352P BLE microcontroller.

I am using the given nvs library(nvcomp) that present in folder(ti/common/nv/) for internal storage purpose.

Its showing the linkng error after building which may be unable to link to that driver.But i already added their in code and include path too.

please follow below code:

NVOCMP_loadApiPtrExt(nvFpsHH);

This above line is giving following error:

unresolved symbol NVOCMP_loadApiPtrExt,first referenced 

  • Hi,

    I think there is a typo in the code snippet. The function you need seem to be NVOCMP_loadApiPtrsExt().

    If you copied this code from TI documentation, please point me to it in order to get it corrected :)

    Kind regards,

  • Hi ,

    follow my where i am getting error:

    /*
    * cc1352InternalFlash.c
    *
    * Created on: Feb 14, 2020
    * Author: gaurav
    */
    #include <stdlib.h>
    #include <ti/common/nv/nvocmp.h>
    //#include <ti/common/nv/nvoctp.h>
    //#include <ti/drivers/NVS.h>
    //#include "ti_drivers_config.h"
    //#include <ti/devices/DeviceFamily.h>

    NVINTF_nvFuncts_t *nvFpsHHH =0;
    // NVINTF_itemID_t gg;

    unsigned int internalFlashInit()
    {


    nvFpsHHH = (NVINTF_nvFuncts_t *)calloc(1,sizeof(NVINTF_nvFuncts_t));

    // NVOCTP_loadApiPtrs(nvFpsHHH);
    NVOCMP_loadApiPtrsExt(nvFpsHHH);
    // NVOCMP_loadApiPtrs(nvFpsHHH);

    nvFpsHHH->initNV(NULL);
    // Do some NV operations
    nvFpsHHH->compactNV(NULL);

    // nvFpsHHH.initNV(NULL);
    // // Do some NV operations
    // nvFpsHHH.compactNV(NULL);
    return 1;
    }

  • hi ,

    follow my code:

    /*
    * cc1352InternalFlash.c
    *
    * Created on: Feb 14, 2020
    * Author: gaurav
    */
    #include <stdlib.h>
    #include <ti/common/nv/nvocmp.h>
    //#include <ti/common/nv/nvoctp.h>
    //#include <ti/drivers/NVS.h>
    //#include "ti_drivers_config.h"
    //#include <ti/devices/DeviceFamily.h>

    NVINTF_nvFuncts_t *nvFpsHHH =0;
    // NVINTF_itemID_t gg;

    unsigned int internalFlashInit()
    {


    nvFpsHHH = (NVINTF_nvFuncts_t *)calloc(1,sizeof(NVINTF_nvFuncts_t));

    // NVOCTP_loadApiPtrs(nvFpsHHH);
    NVOCMP_loadApiPtrsExt(nvFpsHHH);
    // NVOCMP_loadApiPtrs(nvFpsHHH);

    nvFpsHHH->initNV(NULL);
    // Do some NV operations
    nvFpsHHH->compactNV(NULL);

    // nvFpsHHH.initNV(NULL);
    // // Do some NV operations
    // nvFpsHHH.compactNV(NULL);
    return 1;
    }

  • Hi,

    Can you precise what kind of error you are getting? Thanks,

    Regards,