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.

CC3220S-LAUNCHXL: Build Error of the Smart Lock

Part Number: CC3220S-LAUNCHXL
Other Parts Discussed in Thread: TIDC-01005


I tried to build project according to TIDC-01005.

But I get an error message as below.

"C:/ti/simplelink_cc32xx_sdk_2_40_02_00/source/ti/net/ota/otauser.h", line 115: fatal error #35: #error directive: "Please define your personal cloud account token in OTA_VENDOR_TOKEN above"
1 catastrophic error detected in the compilation of "../cloud_ota_task.c".
Compilation terminated.
gmake: *** [cloud_ota_task.obj] Error 1

I don't need the OTA function and don't have OTA_VENDOR_TOKEN. How do I disable OTA?

  • I'll need to install the package (which will take some time) to check the relevant code. But basically you should remove all the "OTA_...()" calls from your code (OTA_init, OTA_set, OTA_run and their related code). You should also remove the ota.a from the linker's file search path and remove the inclusion of "ota.h" in your source files.

    The OTA is only triggered by the user so this code is not mandatory for the basic operation.