Viewing Traces from the WICED Smart Tag
WICED Smart Quick Start Guide
Broadcom
®
WICED Smart Development System
September 24, 2014 • MMPWICED-Smart-QSG203-R
Page 19
Viewing Traces from the WICED Smart Tag
Traces from the application can be viewed by configuring the WICED Smart tag to route traces to the HCI UART,
and then to the COM port of the platform.
To view the traces:
1.
In WICED Smart IDE, in the
Project Explorer pane
(left side of the IDE, see the screenshot on
in the
WICED-Smart folder
, locate and open the
WICED-Smart-SDK\Wiced-Smart\spar\common\sparinit.c
file
.
2.
Make sure that the application_setup function includes the following line:
BLE_APP_ENABLE_TRACING_ON_HCI_UART();
3.
Compile and download the application to the WICED Smart tag as described in
4.
Wait for the
Build Finished
message to display in the console window.
5.
Locate the mini-switch (
SW4
) on the WICED Smart tag, and set DIP switch 2 to the OFF position. The final
switch settings of mini-switch
SW4
are: 1 = ON, 2 = OFF, and 3 through 8 = ON.
Figure 6: Configure UART for Tracing
6.
Press the
Reset
button on the WICED Smart tag (
).
7.
In the WICED Smart IDE menu select
Trace > Start Debug Traces
.
Note:
To successfully download the application to the WICED Smart tag, DIP switches 1 through 8 on
the mini-switch must be set to the ON position.
Reset
Button
SW4
Broadcom
Confidential