freescale semiconductor confidential and proprietary ...€¦ · freescale semiconductor...

24
TM Freescale 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

Upload: others

Post on 14-Oct-2020

13 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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

Page 2: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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.

Page 3: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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

Page 4: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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.

Page 5: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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

Page 6: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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”

Page 7: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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.

Page 8: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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

Page 9: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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”

Page 10: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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

Page 11: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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.

Page 12: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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

Page 13: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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.

Page 14: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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

Page 15: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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.

Page 16: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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

Page 17: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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.

Page 18: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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

Page 19: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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.

Page 20: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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

Page 21: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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.

Page 22: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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

Page 23: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

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

Page 24: Freescale Semiconductor Confidential and Proprietary ...€¦ · Freescale Semiconductor Confidential and Proprietary Information. ... Click “Resume” button Press PTA3, PTD2,

TM