6.6.2 Running the Application

  1. Mount the AVR128DB48 Curiosity Nano host board and the RNWF02 Add On Board on Curiosity Nano base board at respective headers. For more details about the boards placement in the Curiosity Nano base, see Figure 6-1.
  2. Connect the debugger USB port on the AVR128DB48 Curiosity Nano board to computer using a micro USB cable
  3. Open the project and launch MCC with Melody Content Manager Tool
  4. Configure Home-AP credentials for STA mode, using the Wi-Fi settings configuration. For more details about the Wi-Fi settings configuration, See Figure 3-14
  5. Generate the code as illustrated below
    Figure 6-66. Generating the Code
  6. Build and program the code to the hardware using MPLAB X IDE
    Figure 6-67. Programming the Board
  7. Open the Terminal application (for example, Tera Term or PuTTY) on the PC
  8. 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
  9. Press the SW0 (Soft Reset) button on the host board, see Figure 6-1.
  10. As the board boots up, it will connect to Home-AP and prints the IP address obtained. The board will establish a connection with AWS S3. After establishing a successful TLS server-client connection, the application will try to access/read the document listed.
    Figure 6-68. TLS Client Serial Logs
  11. Once the device receives entire document, Receive Complete message is printed on serial console as illustrated in the following figure.
    Figure 6-69. TLS Client Serial Logs