
PSoC 6 WiFi-BT Pioneer Kit Guide, Doc. # 002-22677 Rev. *B
29
WICED
3.4.2
Debugging a Project using Breakpoints
After programming a project, it is possible to debug it in CY8CKIT-062-WiFi-BT using the built-in
debugger.
Note that the scan example used in section
is also used here. The steps outlined in section
should be first followed with a slight change (adding
-debug
to the Make Target command and
removing run). Instead of
snip.scan-CY8CKIT_062 download_apps download run
The following make command should be used:
snip.scan-CY8CKIT_062-debug download_apps download
If
-debug
is not added, then it will be built for release. The important difference between the debug
and release configurations is optimization. Debug is built with no optimization and release is built
with optimization. It is possible to debug without using
-debug
as well, but with many variables and
lines optimized away, many breakpoints may not get hit.
Note that breakpoints must be placed after starting a debug session in WICED Studio 6.1 or later. If
there are any breakpoints that were created prior to the start of debug session, their properties must
be changed to be enabled for all threads.
Perform these steps to debug the project:
1. Execute the make target described above to download the project to the device.
2. Click the arrow next to the
Debug
icon as shown in
and select 43xxx-Wi-Fi_De-
bug_Windows. The Confirm Perspective Switch dialog appears; click
Yes
. The Debug session
starts and halts in the
start_GCC.s
file.
Notes:
a. The Confirm Perspective Switch dialog is not displayed if you previously selected the
Remember my decision
check box in the Confirm Perspective Switch dialog.
b. If any MakeFile/Build error occurs, then clean (using the Clean make target), re-build, and
download to the CY8CKIT-062-WiFi-BT again.
c. In the Debug Perspective, the Project explorer window goes away by default. To view the
source files, switch back to the "C/C++" perspective.
d. To switch between perspectives use the "C/C++" or "Debug" icon at the top right corner of
screen.