6.2.3.2 Running the Application

  1. Mount the RNWF11 Add On Board on SAME54 Xplained Pro Evaluation Kit at respective header. For more details about the boards placement, refer Figure 6-37.
  2. Connect the debugger USB port on the SAME54 Xplained Pro evaluation kit to computer using a micro USB cable.
  3. Change the configuration. There are two options to change the configuration:
    1. Option 1: Change the configuration manually in the code.
      1. Open the code in MPLAB IDE v6.00 or higher and add Home AP and device information in the application code.
        • In configuration.h, add Wi-Fi configurations in SYS_RNWF_WIFI_PROV_SSID, SYS_RNWF_WIFI_PROV_PWD, SYS_RNWF_PROV_SECURITY.
    2. Option 2: Change the configuration via MCC.
      • For more details about Wi-Fi configurations, refer Figure 3-33.
        1. The following fields can be configured via MCC Wi-Fi settings;
          1. SSID
          2. Passphrase
          3. Security Type
  4. Save the changes, then build and program the project.
    Figure 6-42. Make and Program Device Main Project
  5. Open the Terminal application (for example, Tera Term or PuTTY) on the PC.
  6. Connect to the host board COM port and configure the serial settings as follows:
    1. Baud – 115200
    2. Data – 8 Bits
    3. Parity – None
    4. Stop – 1 Bit
    5. Flow Control – None
  7. Press the SW0 (Soft Reset) button on the host board.
  8. The board boots up in the Wi-Fi Provision Mode, as per the configurations given in Step 3. ProvisionMode SSID, IP address and Server port number will be available on the serial console as illustrated in the following figure.
    Figure 6-43. ProvisionMode Serial Logs
  9. Connect to the ProvisionMode SSID via third party STA (any Mobile Phone).
  10. After establishing a successful connection between mobile phone and the ProvisionMode SSID, open Wi-Fi Provisioning application in mobile phone and enter Server IP address and port number as illustrated below and press Connect.
    Note: Microchip’s “Wi-Fi Provisioning” application can be downloaded from Play store or App store.
    Figure 6-44. Connecting to Provisioning Page
  11. On the next page, provide Home-AP details, such as SSID, Security type and Password as illustrated in following figure and press Send.
    Figure 6-45. Provisioning Page
  12. After successful provisioning, the board will connect to the Home-AP and gets an IP address. This IP address is displayed on the serial console.