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.
Connect the debugger USB port on
the AVR128DB48 Curiosity Nano board to computer
using a micro USB cable
Open the project and launch MCC
with Melody Content Manager Tool
Configure the RNWF02 Wi-Fi ProvisionMode credentials, using
the Wi-Fi settings configuration. For more details about the Wi-Fi settings
configuration, See Figure 3-19
Generate the code as illustrated
below. Figure 6-16. Generating the
Code
Build and program the code to the
hardware using MPLAB X IDEFigure 6-17. Programming the
Board
Open the Terminal application
(for example, Tera Term or PuTTY) on the PC
Connect to the host board COM
port and configure the serial settings as follows:
Baud: 115200
Data: 8 Bits
Parity: None
Stop: 1 Bit
Flow Control:
None
Press the SW0 (Soft Reset) button on the host board, see Figure 6-1.
The board boots up in Wi-Fi
ProvisionMode, as per the configurations given in Step 4. ProvisionMode SSID, IP address and Server port number will be available on
the serial console as illustrated in the following figure. Connect to the
ProvisionMode SSID via third party STA (any Mobile Phone).Figure 6-18. ProvisionMode Serial
Logs
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.Figure 6-19. Connecting to
Provisioning Page
On the next page, provide Home-AP details such as SSID, Security type and
Password as illustrated below and Press SendFigure 6-20. Provisioning
Page
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 as illustrated below.Figure 6-21. STA Mode Serial Logs