
CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **
25
Kit Operation
3.4.3
Debugging a Project using Breakpoints
After programming a project, it is possible to debug it in CYW954907AEVAL1F EVK using the built in
debugger.
Note that the scan example used in
3.4.1 Building and Programming a Project for CYW954907AE-
VAL1F in WICED Studio IDE
section is also used here. Steps outlined in
3.4.1 Building and Program-
ming a Project for CYW954907AEVAL1F in WICED Studio IDE
should be first followed with a slight
change (adding -debug to the
Make Target command and removing run). Instead of
snip.scan-CYW954907AEVAL1F download run
The following make command should be used:
snip.scan-CYW954907AEVAL1F-debug 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 might not get hit.
It should be noted that Breakpoints must be placed after starting a debug session in WICED Studio
5.0 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
Figure 3-7
and select
43xxx-Wi-Fi_De-
bug_Windows
. The Confirm Perspective Switch dialog appears; click the
Yes
button. The Debug
session starts and halts in the
start_GCC.s
file.
Note:
■
The Confirm Perspective Switch dialog is not displayed if you have previously selected the
Remember my decision checkbox
in the Confirm Perspective Switch dialog.
■
If any MakeFile/Build error occurs, then clean (using the
Clean
make target), re-build, and down-
load to the CYW954907AEVAL1F EVK again. The Debug session starts and halts in the
start_GCC.s
file.
■
In the Debug Perspective, the Project explorer window goes away by default. To view the source
files, switch back to the "C/C++" perspective.
■
To switch between perspectives, use the "C/C++" or "Debug" icon at the top right corner of
screen.