Getting Started With WiFiMote Examples
Getting Started With WiFiMote Examples
2.Choose Your workspace folder location. All new Project will be created in this location folder only.
Below steps (3-13) have to be done only once, if you have freshly installed code composer studio.
4. A preferences dialog box will open, navigate to the Code Composer Studio->Build->Variables from the left side menu.
1
5. Click on Add, a new dialogue box will open.
c. Value will be equal to the Path of the SDK {C:\ti\CC3200SDK_1.x.0\cc3200-sdk; where x is your SDK version}
2
8. Next go to Environment option, Click on Add to add new variable.
9. Click on the variables button and look for the variable CC3200_SDK_ROOT
13. In the main window from the menu bar navigate to option Project->Import CCS Projects.
3
15. A new dialogue box will appear
16. Click on browse option from the Select Search-directory, navigate to project directory and select the folder where your
project is present.
17. Make sure the option Copy projects into workspace is also checked then click on finish. On the left side, you can see
the project been added.
If not selected Copy projects into workspace, it will work on the actual project instead of making copy of it.
4
18. Right click on the project folder and select option properties. Properties dialogue box will open up.
19.Select Build option from the dialogue box and the steps option as shown below.
5
20. Go-to the Wi-Fi_Labkit folder provided in Docs folder a settings.txt file is there open the file and copy the line
mentioned under post build steps.
“${CCE_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}"
"${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd" "${CG_TOOL_ROOT}/bin/armhex"
"${CCE_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin”
Paste these line under Post-build steps section in the project properties dialogue box. Click on OK.
21. Right Click on the project folder Click on Build project option to compile and generate the .out file and .bin file.
Below Steps are for the example code which deal with wifi Motes RF operations and Sensor boards codes.
6
22. Import the project in which contains wifi rf operations code or sensor data read codes. Right click on the project folder
and go to properties option. Click and expand Build option and select option ARM Linker->File Search Path.
23. Remove the two entries from Include library file or command file as input (--library, -l)
"D:\WiFi_LAB_Kit\WiFiMoteLib\WiFiMoteLib.lib"
"D:\WiFi_LAB_Kit\WiFiMoteLib\UbiSense_lib.lib"
To remove the above paths, select one path and click on the remove icon.
Add new path of WiFiMote.lib and UbiSense_lib.lib by browsing the WiFi_Labkit folder click on the add icon.
24. In Add <dir> to library search path (--search_path, -i) add the path of the WiFiMoteLib folder. Click on OK. Then
compile the example to generate the .out and .bin file.
7
2. Click on New Target Configuration, a new configuration window will open select Connection as CC3x Serial(UART)
Interface. Board or Device should be set to SimpleLink Wifi CC3100/CC3200.
3. A new window will open, enter the COM Port Value it could be found from Device Manager. Select the option System
Files->/sys/mcuimg.bin from the left side menu.
8
4. In Url give the Path of the bin file, it will be in the project folders subfolder Debug. Max Size should be 0. Make sure the
Erase, Update & Verify check boxes are checked. Go back to the CC31xx/CC32xx Flash Setup and Control option.
5. Switch SOP 1 Pin OFF & SOP 2 Pin ON to enable Flashing of the Mote, Click on Program button in the uniflash
window. Press the reset button on WiFiMote Board if flashing does not start automatically.
6. Switch SOP 2 Pin OFF & SOP 1 Pin OFF press reset button on WiFiMote Board to run the flashed program.