Getting Started with WiSeConnect™ SDK v3.x in SoC Mode#
This guide describes how to get started with developing an application for SiWx91x™ using the WiSeConnect™ SDK v3.x in System-on-chip (SoC) mode, where both the application and the networking stack run on the SiWx917 chipset.
If you already selected the WiSeConnect - 3.x.x extension while Install Studio, you may skip this section.
Before installing the WiSeConnect 3 extension, upgrade to a compatible GSDK version if not already done. See the Prerequisites section for the supported GSDK versions.
You may install WiSeConnect 3 through one of the following alternative paths:
We recommend that you upgrade the SiWx917 connectivity firmware to the latest available version when:
you first receive an SiWx917 evaluation kit (EVK)
you first receive a radio board, or
you upgrade to a new version of the WiSeConnect 3 extension
In the Simplicity Studio home page, click Tools.
In the Tools dialog, select Simplicity Commander and click OK.
In the Simplicity Commander window, click Select Kit and choose your radio board.
In the navigation pane, go to the Flash section.
Click Browse next to the Binary File field.
Locate and select the firmware file to flash from within the connectivity_firmware sub-folder of the WiSeConnect 3 extension path.
Note:
If you don't see any files in the sub-folder, select All files in the file filter field in the Browse dialog.
The WiSeConnect 3 extension path is the one where the extension was downloaded during installation. If you're not sure what the path is, you may refer to the location in the Preferences > SDKs page shown on clicking Manage SDKs.
Click Flash.
The firmware will be flashed and the Log Window will display a "Resetting" message.
The Launcher page will display the selected radio board's details.
Select the OVERVIEW tab.
Verify the following in the General Information section:
The Debug Mode is Onboard Device (MCU).
The Preferred SDK is the version you selected earlier.
Select the EXAMPLE PROJECTS AND DEMOS tab.
Locate the example you want and click CREATE.
In the New Project Wizard window, click Finish.
Note: The Copy contents option is not currently supported.
Note: The Make a Copy option is not currently supported while editing a shared SDK file, when prompted to either make a copy of the file or edit it in the SDK itself.
If the binary was built as described in the Build an Application section, a file with a .rps extension is generated. This file will be available under GNU ARM vXX.x.x - Default in the users workspace. To see its location, right-click on the .rps file and select Show In > System Explorer.
Alternatively, you may have obtained a .rps file through another means such as someone else building and providing the binary to you.
Follow the instructions in the Flashing the SiWx91x Connectivity Firmware section to flash the application binary. Instead of choosing the SiWx91x firmware file, select the .rps you want to flash.
Note: If you don't see .rps files in the sub-folder, select All files in the file filter field in the Browse dialog.
Note: If you are using the BRD4338A radio board, the WSTK firmware is not available in Simplicity Studio and must be flashed by following the steps below. This firmware will be available in a future release. For other boards, see the sections that follow for console output and console input.
Connect your WSTK board to your computer.
Open Simplicity Studio.
In the Debug Adapters pane, select your WSTK board.
The Adapter FW field shows your WSTK board's current firmware version, similar to 1vnpxxbyyy, where n is the major version, xx is the patch version number and yyy is the build number.
Click Update to 1.4.xx.yyyy if the version is before 1v4p10b215, or in other words:
Major version = 4 and one of the following is true:
patch < 10 or
patch = 10 and build < 215
The firmware will be upgraded on your WSTK board.
In the Debug Adapters pane, right-click on your radio board and click Launch Console.
Select the Serial 1 tab.
Place the cursor inside the text input field and hit Enter.
Console output will start getting displayed in the Serial 1 tab.
Console input can be entered and sent to the device.
If you are using BRD4338A, please follow the instructions in the Console Output and Input for BRD4338A section for viewing console output. Otherwise, follow the steps here.
Connect your WSTK board to your computer.
Open Simplicity Studio.
In the Debug Adapters pane, select your WSTK board.
The Adapter FW field shows your WSTK board's current firmware version, similar to 1vnpxxbyyyy, where n is the major version, xx is the patch version number and yyy is the build number.
Click Update to 1.4.xx.yyyy if the version is before 1v4p10b..., or in other words, major version = 4 and patch < 10.
The firmware will be upgraded on your WSTK board.
In the Debug Adapters pane, right-click on your radio board and click Launch Console.
Select the Admin tab and press Enter to see the WPK> prompt.
Enter the following command to set the Baud Rate:
pti config 0 vuart 115200
Select the Serial 0 tab to view the console output from the running application.
If you are using BRD4338A, please follow the instructions in the Console Output and Input for BRD4338A section for entering console input. Otherwise, follow the steps here.
Connect the TXD pin (pin 4) of the USB-to-TTL Converter to pin 14 on the WSTK board.
Connect the GND pin (pin 1) of the USB-to-TTL Converter to pin 1 on the WSTK board.
Press the RESET button on the WSTK board.
Open Serial Debug Assistant.
In the Serial Port dropdown, select the serial port to which the USB-to-TTL Converter is connected.
Click Open serial port.
The serial port will be opened and the button will change to Close serial port.
In the input area, enter the characters you wish to send to the SiWx91x device.