Creating Custom Applications

TI 15.4-Stack based system designers must have a firm grasp on the general system architecture, application, and TI 15.4-Stack framework to implement a custom application. This section provides indications on where and how to start writing a custom application, and to decide which role and purpose the custom application should have. If an application is to start the network and be the central node in the network, begin with the Collector Example Application. If the application is to join the network and be a node in the network that communicates with the central node, begin with the Sensor Example Application.

Adding a Board File

After selecting the reference application and preprocessor symbol, add a board file that matches the custom board layout. The following steps provide guidance on adding a custom board file to the project.

  1. Create a custom board file (TI recommends using the Launchpad module board file included in the example applications as a starting reference).
  2. Modify the PIN structure.
  3. Add peripheral driver initialization objects, according to the board design.
  4. Include files from the folder of the start-up application.
  5. Add the custom board file to the application project.
  6. Update the C compiler search path of the IDE to point to the header file of the new board file.
  7. Define an identifier for the new board file.
  8. Rebuild the application project.

Configuring Parameters for Custom Hardware

  1. Set the parameters, such as the sleep clock accuracy of the 32.768-kHz crystal.
  2. Define the CCFG parameters.

Note

For a description of the CCFG configuration parameters, see the CC13x2 CC26x2 SimpleLink Wireless MCU Technical Reference Manual.

Creating Additional Tasks

Many implementations can use the RTOS environment to operate in the application task framework. However, if the system design requires an additional RTOS task, see Initializing a Task for guidance on adding a task.

Configuring TI 15.4-MAC Stack

Configure TI 15.4-Stack with parameters and features. Overview describes the operation and configuration parameters for the stack project for beacon-mode, nonbeacon mode, and the frequency-hopping configuration mode of the network.