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.

[ AWS] IOT Example

hi.

  I'm trying to get the aws iot embedded c sdk example subscribe_publish_sample going. I've got all the build settings done as listed in https://git.ti.com/iotdev/awsiot/blobs/master/README_CC3200.md 

below picture point the install directory 

when i run to here 

C:/ti/xdctools_3_31_01_33_core/gmake all

i get some error ,can't open source file ti/driver/gpio.h ,
so modify all makedefs file
change
XDCPATH = $(NS_INSTALL_DIR)/packages/;$(BIOS_INSTALL_DIR)/packages;$(TIRTOS_INSTALL_DIR)/packages;$(UIA_INSTALL_DIR)/packages;
to
XDCPATH = $(NS_INSTALL_DIR)/packages/;$(BIOS_INSTALL_DIR)/packages;$(TIRTOS_INSTALL_DIR)/packages;$(UIA_INSTALL_DIR)/packages;$(TIRTOS_INSTALL_DIR)/products/tidrivers_cc32xx_2_15_00_26/packages;

and run
C:/ti/xdctools_3_31_01_33_core/gmake clean
C:/ti/xdctools_3_31_01_33_core/gmake all

get some erro still. how to fix.

ariable "pJsonHandler" is used before its value is set
building shadow_sample.out ..
<Linking>

undefined first referenced


symbol in file


--------- ----------------


SimpleLinkGeneralEventHandler C:/TI/tirtos_cc32xx_2_15_00_17/products/tidrivers
_cc32xx_2_15_00_26/packages/ti/mw/wifi/cc3x00/lib/cc3x00_host_driver.aem4<device
.oem4>

error: unresolved symbols remain
error: errors encountered during linking; "shadow_sample.out" not built

>> Compilation failure
gmake: *** [shadow_sample.out] Error 1

  • Declare the missing function in main.c project.

    //*****************************************************************************
    //
    //! \brief This function handles General Events
    //!
    //! \param[in] pDevEvent - Pointer to General Event Info
    //!
    //! \return None
    //!
    //*****************************************************************************
    void SimpleLinkGeneralEventHandler(SlDeviceEvent_t *pDevEvent)
    {
    //
    // Most of the general errors are not FATAL are are to be handled
    // appropriately by the application
    //
    System_printf("[GENERAL EVENT] - ID=[%d] Sender=[%d]\n\n",
    pDevEvent->EventData.deviceEvent.status,
    pDevEvent->EventData.deviceEvent.sender);

    }

  • hi F.

      Thanks very much. it's work final.