TIDUE59A May 2018 – September 2020
The downloaded software includes source files and a premade CCS project, which enables users to quickly start debugging, modifying, and rebuilding the code used by the design. When the software is successfully extracted into the CC3220S RTOS demos folder of the SimpleLink Wi-Fi SDK, the software can be directly imported into a CCS workspace by doing the following:
When the project imports, it also imports a tirtos_build project for the CC3220S, if one does not already exist in the workspace.
For the wifi_doorlock project to build successfully, both the OTA library and the SimpleLink Wi-Fi host driver must be imported into the same workspace and successfully built first.
Prior to building the wifi_doorlock_CC3220S_LAUNCHXL_tirtos_ccs project, users must also import and build the OTA library and the SimpleLink Wi-Fi host driver library projects from the SDK. To import and build the OTA library, do the following:
Before building the ota library, a couple of changes must be made to the project properties. The changes can be made by doing the following:
To import and build the SimpleLink Wi-Fi host-driver library, do the following:
After making the changes to both the ota and simplelink project properties, the libraries can be rebuilt and then the wifi_doorlock_CC3220S_LAUNCHXL_tirtos_ccs project can be successfully built.
By default, the CCS application is configured without power management enabled, to let the debugger maintain a connection to the CC3220S while the wifi_doorlock application is running. Without the power policy enabled, the application can be debugged, as long as the necessary user files are first added to the CC3220 file system. Alternatively, the CCS project can be used to modify and rebuild the application, then replace the mcuimg.bin file in the provided UniFlash ImageCreator project. Section 3.1.2.2 describes how to add the necessary User Files when debugging the application using CCS.
The Wi-Fi doorlock software was created so that different key modules in the software can be disabled during development and evaluation. A set of defines at the top of the wifi_doorlock_app.h file control whether different modules are enabled or disabled. Specifically, it is often convenient to disable the provisioning process during development and instead use a statically defined set of AP credentials to connect to a test network. Setting both the APSC_PROVISIONING and BLE_PROVISIONING defines to (0) instead of (1) bypasses the provisioning process and uses statically defined network credentials located in wifi_doolock_app.h to connect the system to a network.
By default, the power manager is disabled in the CCS project, to let the system remain connected to the CCS IDE while debugging. Enable the power manager by adding USE_POWER_POLICY to the list of Predefined Symbols in the wifi_doorlock_CC3220S_LAUNCHXL_tirtos_ccs project.