freescale semiconductor confidential and proprietary ...€¦ · freescale semiconductor...
TRANSCRIPT
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009. 1
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Using breakpoints
►This hands-on lab shows you how to use breakpoints.
• Add breakpoints
• Add hardware breakpoints
• Set conditional breakpoints
• Skip breakpoints
• Disable/enable breakpoints
• Remove breakpoints
►The lab uses the DEMOQE128 board with the MC9S08QE128 daughter card.
►The application uses buttons connected to PTA2, PTA3, PTD2, PTD3
to turn on LEDs and sound tones.
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Add a breakpoint
3
1
Select Breakpoint View
2 Double click on task bar
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Add a breakpoint
4
4 Breakpoint displayed with
filename and line number
3 Icon displayed on task bar
5
Click “Resume” button
Press PTA3, PTD2, PTD3 on demo board to light up LEDs and hear tones. Pressing PTA2 should cause program to break.
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Add a hardware breakpoint
5
1 Right click on task bar
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Add a hardware breakpoint
6
2 Select “Set Special Breakpoint”
3 Select “Hardware”
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Add a hardware breakpoint
7
5
Breakpoint displayed with
filename, “hardware” and line number
4 Icon displayed on task bar
6Click “Resume” button
Press PTD2, PTD3 on demo board to light up LEDs and hear tones. Pressing PTA2 or PTA3 should cause program to break.
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Set conditional breakpoints
8
1 Right click on breakpoint
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Set conditional breakpoints
9
2Select “Properties”
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Set conditional breakpoints
10
3Select “Common”
Set “Ignore Count”
equal to 54
5
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Set conditional breakpoints
11
6Breakpoint displayed with ?,
filename, line number and
ignore count7 Click “Resume” button
Press PTD2, PTD3 on demo board to light up LEDs and hear tones. Pressing PTA2 the sixth time or pressing PTA3 should cause the program to break.
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Skip breakpoints
12
1Click “Skip” button
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Skip breakpoints
13
2 Click “Resume” button1 Icons are crossed out
Press PTA2, PTA3, PTD2, PTD3 on demo board to light up LEDs and hear tones. Pressing PTA2 or PTA3 should NOT cause the program to break.
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Skip breakpoints
14
3Click “Skip” button again
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Skip breakpoints
15
4 Icons no longer crossed out5 Select “Resume” button
Press PTD2, PTD3 on demo board to light up LEDs and hear tones. Pressing PTA2 the sixth time or pressing PTA3 should cause the program to break again.
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Disable/Enable breakpoints
16
1 Select box to
disable breakpoint
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Disable/Enable Breakpoints
17
2 Box is empty and
icon is grayed out3 Select “Resume” button
Press PTA3, PTD2, PTD3 on demo board to light up LEDs and hear tones. Only pressing PTA2 the sixth time should cause the program to break.
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Disable/Enable Breakpoints
18
4 Select box to
enable breakpoint
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Disable/Enable breakpoints
19
5 Box is checked and
icon is active6 Click “Resume” button
Press PTD2, PTD3 on demo board to light up LEDs and hear tones. Pressing PTA2 the sixth time or pressing PTA3 should cause the program to break again.
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Remove a breakpoint
20
1 Select a breakpoint
2Click “X” button
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Remove breakpoints
21
3 Breakpoint is removed
from project4 Click “Resume” button
Press PTA3, PTD2, PTD3 on demo board to light up LEDs and hear tones. Only pressing PTA2 the sixth time should cause the program to break.
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Remove breakpoints
22
5Click “XX” button
6
TMFreescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Remove breakpoints
23
7 Click “Resume” button
Press PTA2, PTA3, PTD2, PTD3 on demo board to light up LEDs and hear tones.
8 Click “Terminate” button
TM