12.4.7 OTA Implementation Details - OTAU Server

Follow the below step to add the Zigbee OTAU Server capability in any of the zigbee application. Mostly Combined interface which is zigbee co-ordinator is considered for OTAU server.

Pre-requisite

  1. Open any zigbee type application based on MCC (Example project/ Custom created project)

  2. Launch MPLABx Code Configurator (MCC).

The below steps explains only the components/configurations needed for OTAU Server functionality.
Figure 12-75. .

Pull-in MCC Components

  1. Configure "Zigbee Device Type" component as below to enable "OTA Server" capability.
    Figure 12-76. .
  2. As the OTAU server is connected to PC to get the upgradable image, the UART interface has to be configured. Connect "Zigbee console" in the Zigbee device component to USART Driver Component and to SERCM0 component (for WBZ Curiosity Board) as shown below.
    Figure 12-77. .
    1. Configure the SERCOM0 component to set the uart baud rate, parity, data bits and Sercom Tx and Rx pins, DMA. DMA is needed for stable UART communication without impacting the CPU time for other operations.
      Figure 12-78. .
  3. Add the "Bootloader Services" dependent component for "Device Support" component in project graph. This component generates the supporting linker file and MPLABX script needed for OTAU Server device upgrade over UART. This step is needed only when require to upgrade the OTAU server device locally through UART interface.
    Figure 12-79. .
    Figure 12-80. .

Generate Code

Generate Code by Clicking on "Generate" button

Figure 12-81. .

Files and Routines Automatically generated by MCC

After generating the code from MCC tool by clicking Generate, below is the project folder structure.
Figure 12-82. .