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.

LAUNCHCC3220MODASF: Linking Errors with CryptoCC32XX Driver in CC3220MODASF Project

Part Number: LAUNCHCC3220MODASF

Tool/software:

Hello Ti tech team,

I am currently working with the cc3220modasf and attempting to integrate the local OTA (simplelink_cc32xx_sdk_4_10_00_07) sample code into the Iothub_client_sample_mqtt code (azure_cc32xx_4_10_01_01) by performing the following operations.

1. Include Files
- `ota_archive.c`
- `ota_archive.h`
- `ota_json.c`
- `ota_json.h`

2. Linking Library
- `ti/utils/json/lib/ccs/m4/json_release.a`

I am experiencing the following linking errors.
undefined first referenced
symbol in file
--------- ----------------
CryptoCC32XX_config C:/ti/simplelink_cc32xx_sdk_4_10_00_07/source/ti/drivers/lib/drivers_cc32xx.aem4<CryptoCC32XX.oem4>
CryptoCC32XX_count C:/ti/simplelink_cc32xx_sdk_4_10_00_07/source/ti/drivers/lib/drivers_cc32xx.aem4<CryptoCC32XX.oem4>

The properties of my project are detailed below.





which library path include, or which header file include to fix this problem?

  • Hi,
    Any update Today?

  • Hi,

    This is not related to include path or missing libraries.

    If you want to use crypto, you need to add it in the syscfg. Have you done so?

    When it is added, then the generated ti_drivers_config.c file should contain these missing symbols.

    Should look like:

    /*
     *  ======== CryptoCC32XXObjects ========
     */
    #define CONFIG_Crypto_COUNT 1
    CryptoCC32XX_Object cryptoCC32XXObjects[CONFIG_Crypto_COUNT];
    
    /*
     *  ======== Crypto_config ========
     */
    const CryptoCC32XX_Config CryptoCC32XX_config[CONFIG_Crypto_COUNT] = {
        /* CONFIG_Crypto_0 */
        {
            .object = &cryptoCC32XXObjects[CONFIG_Crypto_0],
        },
    };
    
    const uint_least8_t CONFIG_Crypto_0_CONST = CONFIG_Crypto_0;
    const uint_least8_t CryptoCC32XX_count = CONFIG_Crypto_COUNT;

    Regards,

    Shlomi